Key Assignment Draft
Within software applications, logic structures are used to direct a computer program to follow different paths of execution. Your fourth Individual Project will involve extending the application that you created in Week 1. You will extend your application to include 4 logic structures, which include (1) if-then-else, (2) switch, (3) while, and (4) a for loop. For each of these logic structures, use results of the variable that was created in Week 3 and returned from the newly created user-defined function. This variable can be evaluated within each logic structure. Proceed with the following steps:
- Use the application that you created in Eclipse in Week 1.
- Update the program to include any feedback previously provided by your instructor.
- Use the variable that was returned by the user-defined function created in Week 3.
- After this variable is returned, use it for evaluation within the following 4 logic structures. (For example, you may decide to print to the screen if it is below or above the number 5.)
- If-Then-Else
- Switch
- While loop
- For loop
Submit the following:
- The CPP file that contains the code
- A screenshot of a successful compile
A screenshot of successful run


0 comments