[MSOE Homepage]

Dr. Taylor's MSOE homepage

Courses

Unix is a Four
Letter Word

My Photo Album

My Personal Homepage

CS-100 Main page

CS-100 -- Lab 2: Grade Calculator

Fall Quarter 1999



Electrical Engineering and Computer Science Department
Dr. Christopher C. Taylor

S-331, 277-7339

www.msoe.edu/~taylor/

Purpose

In 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.

Assignment

Write a program that prompts the user for all his/her grades in CS-100 and calculates the user's final grade. Assume the user knows all of his/her grades possible for the entire quarter (9 lab assignments, 9 quizzes, 3 hour exams, and a final project). 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 100  72     Ave:  85.333
Exams:     82  75  90                             Ave:  82.333
Project:   79

Overall Grade:  81.216

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 4:30pm Tuesday, September 28, 1999)

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:

  • Purpose
  • Problem Statement
  • Procedure (include the steps in your design procedure, reasons for your design decisions, etc.)
  • Documented source code (you may wish to include this at the end of your report)
  • Conclusions (problems you encountered, what you learned, suggestions of how the lab could have been better, things you would have done differently, etc.)

As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic Submission Guidelines. (You may wish to consult the sample report before submitting your report.) 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.

If you have any questions, consult the instructor.


This page was created by Dr. Christopher C. Taylor copyright 1999.