Simple Stats
Build a simple statistics calculator. This will keep a running count and total, as well as the minimum and maximum, for values entered by the user. When a value is entered, the program can update and output the count, total, minimum, maximum, and average.
Welcome to the simple stats calculator:
Enter value: 10Count: 1Total: 10.0Min: 10.0Max: 10.0Average: 10.0
Add another value: [y/n] yEnter value: 30Count: 2Total: 40.0Min: 10.0Max: 30.0Average: 20.0
Add another value: [y/n] yEnter value: 5Count: 3Total: 45.0Min: 5.0Max: 30.0Average: 15.0
Add another value: [y/n] yEnter value: -45Count: 4Total: 0.0Min: -45.0Max: 30.0Average: 0.0
Add another value: [y/n] yEnter value: 25.5Count: 5Total: 25.5Min: -45.0Max: 30.0Average: 5.1
Add another value: [y/n] nI hope you got the information you are after!