subject

Write a program that lets the user enter in a file name (numbers. txt) to read, keeps a running total of how many numbers are in the file, calculates and prints the average of all the numbers in the file. This must use a while loop that ends when end of file is reached. This program should include FileNotFoundError and ValueError exception handling. Sample output: Enter file name: numbers. txt There were 20 numbers in the file. The average is 4.35

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
You should try to photograph people on bright sunny days because the light will be best a) true b) false
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 1
question
Computers and Technology, 24.06.2019 17:50
You work in the accounting department and have been using a network drive to post excel workbook files to your file server as you complete them. when you attempt to save a workbook file to the drive, you see the error message: “you do not have access to the folder ‘j: \’. see your administrator for access to this folder.” what should you do first
Answers: 2
You know the right answer?
Write a program that lets the user enter in a file name (numbers. txt) to read, keeps a running tota...
Questions
question
Mathematics, 08.01.2021 01:00
question
Mathematics, 08.01.2021 01:00
question
Mathematics, 08.01.2021 01:00
question
Mathematics, 08.01.2021 01:00
question
Mathematics, 08.01.2021 01:00
question
Mathematics, 08.01.2021 01:00
question
Biology, 08.01.2021 01:00
Questions on the website: 13722360