Question: Just While - loop. otherwise no credit. Question: Calculate the average of students: 1 ask user how many students are in the class. 2 .

Just While-loop. otherwise no credit.
Question: Calculate the average of students:
1 ask user how many students are in the class.
2. fot each student ask how many grades do you bave
3. ask user to enter grades for that student and for each grade validate it
4 after getting valid grades for each student then calculate the average for that student.
Sample output:
How many students are in the class: 2
Student I: how many grades you have: 3
Student1, Grade1: 90
Student, Grade2: -1
Error: Invalid grade enter again.
Student1, Grade2:90
Student 1, Grade3:90
Average for Student 1 is 90
Student 2: How masy grades you have? 2
Student 2, Grade 2:80
Student 2, Grade 2:80
The average for student 2 is 80
End of the program
 Just While-loop. otherwise no credit. Question: Calculate the average of students:

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!