Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Welcome to the Gradebook Application Please enter your choice (0 to quit) 1. Create a gradebook, enter grades and perform computations 2. Print a gradebook along with statistics 3. Append students to the class roaster --> 1 Please enter a gradebook name gradbook106.txt Please enter the class roaster file name class Roaster106.txt Entering grades of students listed in the Class Roaster Student 200701 Omar Enter grade of Assignment 1 (out of 20):19 Enter grade of Assignment 2 (out of 20):20 Enter grade of Project (out of 30):29 Enter grade of Midterm Exam (out of 40>:39 Enter grade of Final Exam (out of 40>:33 Student 200702 Mahmoud Enter grade of Assignment 1 (out of 20):17 Enter grade of Assignment 2 out of 20>:18 Enter grade of Project (out of 30):28 Enter grade of Midterm Exam (out of 40>:38 Enter grade of Final Exam (out of 40):30 Student 200703 Jasem Enter grade of Assignment 1 (out of 20):15 Enter grade of Assignment 2 (out of 20):16 Enter grade of Project (out of 30):27 Enter grade of Midterm Exam (out of 40>:37 Enter grade of Final Exam (out of 40):28 Student :200704 Walid Enter grade of Assignment 1 (out of 20): Finish entering grades as per the sample output of choice 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started