Question: Write a CH program that calculates the average mark of a class. The first integer of the input represents the number of classes. Then, each

 Write a CH program that calculates the average mark of a

Write a CH program that calculates the average mark of a class. The first integer of the input represents the number of classes. Then, each line begins with an integer, n, that represents number of students in the class. It is followed by n integers that represent the marks of the students in the same class. Calculate and display the average mark of each class. You must follow the input and output formats as shown in the sample below: I 3 4 50 60 12 34 The average is: 39 3 12 89 77 The average is: 59.3333 7 12 100 23 33 44 11 34 The average is: 36.7143 Assume the user's input is always correct and no data validation is required. Also, write pseudocode of the solution to this problem as comments at the beginning of your source code

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!