Python Program Using Windows Notepad Similar Program Create File Called Numberstxt Folder Q37070055

Python Program:

Using Windows Notepad (or similar program), create a file calledNumbers.txt in your the same folder as your Pythonprogram. This file should contain a list on floating point numbers,one on each line. The number should be greater than zero but lessthan one million.

Your program should read the following and display:

  • The number of numbers in the file (i.e. count them)(counter)
  • The maximum number in the file (maximum)
  • The minimum number in the file (minimum)
  • The total of all the numbers in the file(total)
  • The average of all the numbers in the file(average)

The count should be displayed as an integer (a whole number, nodecimal point). The

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.