Question: 6 . Averaging a ) Define a function average ( ) with a parameter grades that can accept an arbitrary number of integer values. This

6. Averaging a) Define a function average() with a parameter grades that can accept an arbitrary number of integer values. This function returns the average of all values. b) Define a main() function to do the following: 1) Call the average() function with the following arguments: 95,87,83,742) Create two random integers, x and y. x is from range -100 to 0, and y is range from 0 to 100 inclusively. 3) Call the average() function with x and y.4) Print al the results with the average computed to two dec

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 Programming Questions!