Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Just While - loop. otherwise no credit. Question: Calculate the average of students: 1 ask user how many students are in the class. 2 .
Just Whileloop. otherwise no credit.
Question: Calculate the average of students:
ask user how many students are in the class.
fot each student ask how many grades do you bave
ask user to enter grades for that student and for each grade validate it
after getting valid grades for each student then calculate the average for that student.
Sample output:
How many students are in the class:
Student I: how many grades you have:
Student Grade:
Student, Grade:
Error: Invalid grade enter again.
Student Grade:
Student Grade:
Average for Student is
Student : How masy grades you have?
Student Grade :
Student Grade :
The average for student is
End of the program
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