subject

If you have downloaded this book’s source code from the companion Web site, you will find a file named Random. txt in the Chapter 05 folder. (The companion Web site is at www. pearsonhighered. com/gaddis.) This file contains a long list of random numbers. Copy the file to your hard drive and then write a program that opens the file, reads all the numbers from the file, and calculates the following:
A) The number of numbers in the file
B) The sum of all the numbers in the file (a running total)
C) The average of all the numbers in the file
The program should display the number of numbers found in the file, the sum of the numbers, and the average of the numbers.

Prompts And Output Labels. Print each of the above quantities on a line by itself, preceding by the following (respective) labels: "Number of numbers: ", "Sum the numbers: ", and "Average of the numbers: ".

Instructor Notes:

Here are all of the necessary output strings to assist you with this assignment.

"Number of numbers: "
"Sum of the numbers: "
"Average of the numbers: "

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
Who introduced the concept of combining artificial and natural light in the studio
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
You know the right answer?
If you have downloaded this book’s source code from the companion Web site, you will find a file nam...
Questions
question
Chemistry, 03.09.2020 21:01
question
Mathematics, 03.09.2020 21:01
question
English, 03.09.2020 21:01