Project: Average of five numbers
Write a program that reads five numbers from the keyboard and prints their average. It should accept negative numbers and decimals. When you run it, the output should match this format:
Please enter five numbers.
-5.4
2.1
7.0
134.8
-20.0
The calculated average of those numbers is:
23.7
Save the file as calculate_average.py.
Show a solution
Try the project on your own first. This is one working solution. Press Run, and a box asks for each input. Type the sample values from the project description to see the same output.
These tests check the solution above. They run a copy of the program, kept in PROGRAM, and give it pretend input. The testing tools here are not part of the course yet, so do not worry about how they work. Read the test names and the expected outputs: together they list what the program must do. Press Run to run the tests.
Projects run on your own computer, so you tell us when you are done.