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 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
Get step-by-step solutions from verified subject matter experts
