Question: Exercise 4 Write a program that request an instructor to enter the number of students in his class, then asks the grades of all students

 Exercise 4 Write a program that request an instructor to enter

Exercise 4 Write a program that request an instructor to enter the number of students in his class, then asks the grades of all students sequentially and ends up computing the average class grade. Note that there is no average if there are no students! Sample runs below: How many students are in your class? 4 What is the graded of student \#1? 85 What is the graded of student \#2? 90 What is the graded of student \#3? 95 What is the graded of student \#4? 92 The average class grade is 90.5 How many students are in your class? 0 You had no students in the class

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!