Question: a) Write a program that will allow user to enter five different scores for a student. Store the scores in a five-element array named scores.

a) Write a program that will allow user to enter five different scores for a student. Store the scores in a five-element array named scores. Then display back the content of the array.

b) Modified your answer for question 1. In this version, the main function passes the calories array to a program-defined void function named displayArray, whose task is to display the contents of the array.

3) Modified your answer for question 2. The additional function will be a value-returning function named getAverage. The function will calculate the average scores of the student and then return the result to the main function.

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!