COSC 1435 Lab 7

Purpose: This lab focuses on writing a C++ program that uses a menu to make decisions.

Due: Before class on March 25, 2013

Requirements: Do the following:

1. Do Programming Challenge 21, Geometry Calulator, from Gaddis, Page 225. I suggest you use Program 4-18 (if statements) or 4-27 (switch statement) as example programs that uses a menu. Make sure your program does the 'input validation' that are at the end of the programming challenge.

2. Format your output so that the user of your program understands the values that were input and what was output for each calculation. Your program should have a user-friendly interface.

3. Make sure your program is properly documented and good programming standards are followed. For this program you must have a program identification/summary section and comments that explain each of the calculations.

4. Try your program with a variety of input values, to determine it works properly. Some of the values you should try include positive, negative, integer, floating point numbers, and zero.

5. BONUS. You can gain additional points for calculating other geometry related values. For example, the perimeter of a rectangle, or the volume of a pyramid or cone. Use the Internet to find the formulas you need to calculate the values. Add appropriate menu items to add the calculations to the menu.

6. This lab requires a lab report/documentation package. All of these items are not typically in the same file (source code and sample output should definitely be in their own files), but the main lab report file must reference each item by name. Here is a sample lab report. The main lab report must either be a text file (with a .txt extension) or a Microsoft Word file (with a .doc extension). The lab report must includes the following or references (the file name that was attached to the mail) to the following information:

Program Submission. You will be submitting this lab via Blackboard as you have done in porevious labs. Prepare the following:

Grading Criteria: 100 points available for this lab. 30 Bonus points available (see bonus area above). Following is the grading criteria for this lab: