C++ Help (4)

0 comments

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.)
  1. If-Then-Else
  2. Switch
  3. While loop
  4. For loop
  • Within each logic structure, print the result of the evaluation to standard out.
  • Compile the application.
  • Run the application to demonstrate a working program.
  • Submit the following:

    • The CPP file that contains the code
    • A screenshot of a successful compile

    A screenshot of successful run

    About the Author

    Follow me


    {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}