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

When the user chooses 1, the program should perform thefollowing tasks:

  1. Prompt the user for a gradebook file name and create thatfile.
  2. 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)
  1. Calculate the total grade for each student as a score (i.e. outof 150 points)
  2. 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

  1. 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)
 

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!