CSCI 1411 Lab 4: Conditional Statements and Programming Assignments
In Lab 4 of CSCI 1411, students engage with conditional statements, exploring relational operators and the if, else if, and switch statements. Students will modify and submit source files including `initialize.cpp`, `grades.cpp`, `LogicalOp.cpp`, and `switch.cpp` after completing predefined exercises. Additionally, students will choose one programming assignment from options like Water Bill, T-shirt Shop, or Tuition, implementing it without a design document but with proper code comments to enhance readability.
CSCI 1411 Lab 4: Conditional Statements and Programming Assignments
E N D
Presentation Transcript
CSCI-1411 Fundamentals of Computing Lab Shane Transue Spring 2014
Lab 4: Conditional Statements • 4.1 Relational Operators and the ifstatement • initialize.cpp • Submit source file after exercise 4 modifications • 4.2 if/else if Statements • grades.cpp • Submit source file after exercise 3 modifications • Answer the exercise 3 question • 4.3 Logical Operators • LogicalOp.cpp • Refer to the source code to answer the questions from exercises
Lab 4: Conditional Statements • 4.4 The switchStatement • switch.cpp • Answer the question to exercise 3 • 4.5 Choose one of the available 3 programming assignments to implement • Option 1: Water Bill • waterbill.cpp • Option 2: T-shirt shop • tshirt.cpp • Option 3: Tuition • tuition.cpp • No design document, but should be properly commented
Lab 4: Conditional Statements • Lab-4 Submission: • initialize.cpp • grades.cpp • LogicalOp.cpp • switch.cpp • One of the following: • waterbill.cpp • tshirt.cpp • tuition.cpp