Braxton W.

asked • 04/23/18

How do I write this

8-2. Write a program named studentAverage that prompts user for the number of students in a class. Store that
number in an integer variable called numStudents. Prompt the user to enter the final exam grade as an integer
value between 1 and 100 for each student and save those grade values in an integer array called grades. Iterate
through the array and display each student’s final exam grade, and then display the class average.
Expected Output if 3 students entered with following grades: 89, 95, 70
89
95
70
Class Average = 84.67

1 Expert Answer

By:

Miffy C. answered • 09/24/18

Tutor
4.7 (11)

Cloud Software Engineer, Amazon intern, MS in Computer Science

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.