Question: please typing (a) () Develop a program that performs the following task 5 times using only the for-loop flow control structure to write: obtain an

please typing (a) () Develop a program that performs the following taskplease typing

(a) () Develop a program that performs the following task 5 times using only the for-loop flow control structure to write: obtain an integer value from the user, calculate the average of all integers entered so far, and display the average. Below is an example of the input and output of the program with some explanations. Average = 1/1 Enter an integer: 1 Average so far: 1 Enter an integer: 2 Average so far: 1.5 Enter an integer: 3 Average so far: 2 Average = (1 + 2)/2 = 1.5 Average = (1 + 2 + 3)/3 = 2 (10 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!