Question: (d) Write a complete C program that generates random numbers and calculates the total and average. Ensure that each time the program runs, a different

 (d) Write a complete C program that generates random numbers and

(d) Write a complete C program that generates random numbers and calculates the total and average. Ensure that each time the program runs, a different set of random numbers are generated. Sample output screen Random number generated: 32011 Generate another random number(y)? y Random number generated: 5373 Generate another random number(y)? y Random number generated: 5138 Generate another random number(y)? y Random number generated: 19141 Generate another random number(y)? n :: TOTAL : 61663 :: AVERAGE : 15415.75 (12 marks)

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!