| CS150 -- Lab 2: Grade Calculator |
|
|
OverviewIn this lab, you will write your first C++ program. When done, you should be able to declare objects as well as understand the functionality of the cin and cout objects. ProcedureWrite a program that prompts the user for all his/her grades in CS-150 and calculates the user's final grade. Assume the user knows all of his/her grades possible for the entire quarter (7 lab assignments (x/100), 9 quizzes (x/10) (don't worry about excluding the lowest quiz score), 2 hour exams (x/100), and a final exam (x/100)). Use the grading scheme provided in the course syllabus. The output which lists the grades should be formatted to appear as follows: Quizzes: 10 8 3 8 7 7 10 7 6 Ave: 7.333 Labs: 92 62 75 88 97 90 92 Ave: 85.143 Exams: 82 75 Ave: 78.5 Final: 79 Overall Grade: 79.043 Enter different values than the ones listed above for the example output included in your report. Programming consideration: It is always good in program design to consider potential modifications that may be required a some later date. Be sure to keep this in mind when designing your program. Lab Report (due beginning of week 4 lab)The lab report should be self-contained. That is, it should be possible for someone to understand what you did and why without seeing anything other than your report. Your report should include:
Your report should be typed, and as with any report you submit, correct spelling and grammar are required. Be sure to keep copies of all your files, in case something gets lost. It may be wise to keep a diskette backup as well. Your grade will depend on quality of design and clarity of the code and documentation, as well as whether your program produces the correct results. If you have any questions, consult the instructor. |
| Office: CC-27C, Phone: 277-7339 |
| Last Updated: September 10, 2000 © 2000 Dr. Christopher C. Taylor |