Name(s) & ID(s):_________________________________________________________
Assignment P3
CS 100 � Summer 1999
Due: Thursday July 22, 1999 at the beginning of class.
Turn in your assignments according to the instructions given in the first day handout. Remember to include sample output when you turn in your program listings. Also turn in a disk with a runnable version of your code (the same as what you've printed). You are allowed to work with one partner on this assignment, in fact, it is strongly encouraged that you do so. Remember that you will be graded on both style and correctness. For the written problems, please turn in typed (or highly legible handwriting) responses.
For those students expecting a letter grade, their weighted average is computed as follows: The first and second grades count for 10% each, the midterm for 25%, the next assignment for 20% the next for only 5%, and the final exam for 30%. For those students expecting a pass/fail mark, a passing grade is given if they achieve a weighted average of 70 or more.
Print each student's name, their 6 grades, their weighted average, and if they are taking the class pass-fail whether they passed or failed. You should also print the average for the entire class at the bottom of the list.
After each choice except for quit, the menu should be shown again. Implement each of the above tasks. You should hand in two separate programs for Problems 2 and 3. Clearly, the source code for Problem 3 will duplicate a lot of the source code for Problem 2.
1 -10 | *****
11 - 20 | ***
21 - 30 |
31 - 40 | ********
41 - 50 | **
51 - 60 | ****
61 - 70 | ******
71 - 80 | ***
81 - 90 | **
91 - 100 | ********
if (n >= 2) n = 3*n + 1;
if (n >= 7) n = n - 7;