

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Name: Sec: 06/06/
Continuing from your hello world program, we will be reviewing the programming and use of some of the simple building blocks of the C++ language, including simple control structures, writing functions, declaring variables and programming input/output from your C++ programs.
Review the basic control structures used in C++, including selection statements (such as if/else/else if statements) and looping statements (like for and while loops). Also look at creating new functions in C++ and passing parameters to functions as input to the function, as well as returning values from functions as the result of the function. In addition, look at simple input and output to C++ programs using the iostream library functions.
zero, you will instead call a function that you will write in step 4. For now, if the value is nonz ero, simply print out a message stating the value of the integer that was entered.
You have now completed Program 1. As with lab 1, the final step you should perform when you complete an assignment is to upload your finished assignment to your eCollege account. Go ahead at this point and upload your Program1.cpp source file to eCollege. Once this is done you have successfully completed the programming assignment #1.