Question: Practice with loops 1) Write a C program to calculate the average of a set of, N, floats. The run time should look like these

Practice with loops 1) Write a C program to calculate the average of a set of, N, floats. The run time should look like these examples: Enter the count number: 4 Enter the number: 5.5 Enter the number: 12.5 Enter the number: 8 Enter the number: 23.5 The average of 4 numbers entered is 12.375000 Enter the count number: 2 Enter the number: 45.5 Enter the number: 67.3 The average of 2 numbers entered is 56.400002 2) Write a C program to calculate the average of all integer numbers entered. The average value should be calculated when zero is entered as the last number. The run time should look like this: This will calculate the average of all numbers entered Enter a zero to stop entering numbers Enter the number: 12 Enter the number: 34 Enter the number: 25 Enter the number: 8 Enter the number: 0 The average of 4 numbers entered is 19.750000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
