Question: Use c plus plus shell for program 3 Program #2-Loop Structures a) Read 5 numbers from the user, utilizing a FOR loop structure b) Calculate
Program #2-Loop Structures a) Read 5 numbers from the user, utilizing a FOR loop structure b) Calculate the average of the 5 numbers. You should use a floating point variable for this c) Print out "Average", then the average d) Repeat this program using a WHILE loop Program #3-Subroutines Modify Program #2 to do three separate averages by calling an averaging subroutine named numavg(). Display the average each time
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
