Project 10

pretest loop, toupper function (75 points)


Sample output1

Do you want to average a set of numbers? (y/n) : n


No numbers entered.


Sample output2

Do you want to average a set of numbers? (y/n) : y


Please enter a number : 4
Again (y/n) : y
Please enter a number : 3.4
Again (y/n) : y
Please enter a number : 5.3
Again (y/n) : y
Please enter a number : 2.5
Again (y/n) : y
Please enter a number : 7
Again (y/n) : y
Please enter a number : 8
Again (y/n) : n

The average of your 6 numbers is 5.03

Sample output3

Do you want to average a set of numbers? (y/n) : y


Please enter a number : 3
Again (y/n) : y
Please enter a number : 7.7
Again (y/n) : y
Please enter a number : 3.3
Again (y/n) : n

The average of your 3 numbers is 4.67