When the user chooses 1, the program should perform thefollowing tasks: Prompt the user for a gradebook
Fantastic news! We've Found the answer you've been seeking!
Question:
When the user chooses 1, the program should perform thefollowing tasks:
- Prompt the user for a gradebook file name and create thatfile.
- For each student listed in the attached class roaster file(classRoaster106.txt), enter the following four grades:
- First Assignment (out of 20 points)
- Second assignment (out of 20 points)
- Project (out of 30)
- Midterm Exam (out of 40 points)
- Final Exam (out of 40 points)
- Calculate the total grade for each student as a score (i.e. outof 150 points)
- Calculate the weighted total grade for each student as apercentage (i.e. out of 100%). Note that the weight distributionshould follow those in Table-1:
Assessment Type | Weight |
First Assignment | 10% |
Second Assignment | 10% |
Project | 10% |
Midterm Exam | 30% |
Final Exam | 40% |
Weighted Total Grade | 100% |
Table-1: Weight Distribution
- Write to the gradebook file: the student Id, the four grades,the total grade and the weighted total grade.
Sample output of choice 1
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: