Question: Write a program to calculate and student grade. Your program should do the following: a. Ask the user number of students in the class b.

 Write a program to calculate and student grade. Your program should

Write a program to calculate and student grade. Your program should do the following: a. Ask the user number of students in the class b. For each student ask id (int), grade (double) c. Display each student id, and grade d. Add grade to total e. If the number if student is more than repeat the step b, c, d f. Calculate the average (total_gradeumber_of_student) g. Display total grade and average Enter number of students in the class > 3 Enter student 1 id > 111 Enter student 1 grade > 78.5 Student 1 ID: 111 and GRADE: 78.5 Enter student 2 id > 222 Enter student 2 grade > 82.5 Student 2 ID: 222 and GRADE: 82.5 Enter student 3 id > 333 Enter student 3 grade > 92.20 Student 3 ID: 333 and GRADE: 92.2 Total Grade: 253.20 Average Grade: 84.40 Press any key to continue

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!