This is a 2-part lab. It provides you the opportunity to begin your design for homework 2 and it has you practice with the formatting of a C++ program. Spend only about 15 minutes on the first part.
Read through the description on the above web page as well as within the homework2.cpp file itself. Note the six functions that you have to design and write. (These can also be seen on the paper structure chart, though the names of the functions were not decided for you.)
Decide who will work on which of the functions. Each person should have 2 functions. Also decide on the name of each function. Exchange email addresses so that you can keep in contact regarding this group homework.
For Monday, each person should write out the function prototype and the Given, Task, Return comments for his/her 2 functions. Make sure that you have thought through what the parameters should be and what their types should be. Bring this to class on Monday, as you will be asked in class to discuss and finalize your function design so that you can then go on to write the code for your functions.
On Monday you will have to select one person who will submit the design for all 6 functions. Perhaps you can email your designs to the person chosen. The agreed-upon design for the 6 functions is to be copied by this person to the Hw111-2 network drive no later than Wednesday.
Each person should do this part of the lab, though you can ask your group members for assistance. Open your workspace that you have for this course on your M drive. Use File, New to create a new project (console app). Be sure to click "add to current workspace". Use My Computer to copy the badformat.cpp file from your Cs111-2 network drive to the folder for your new project on your M drive.
In Visual Studio, use Project, Add to Project, Files to add this file to your project. In the File pane, select this file so that you can edit it. This C++ program was very poorly formatted as everything is jammed together. Using the CIS Department Guidelines on Formatting and Documentation as a guide, format this file so that the spacing, indenting, etc. are as they should be. Also see the Software Design online book if you need further examples of properly formatted programs.
Before leaving the lab, copy your polished version of the badformat.cpp file to your Hw111-2 file. Your instructor will check it later.