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, 22.06.2019 10:30
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
How do you make a lenny face? plz, brailiest to who can answer first.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
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
Mathematics, 30.03.2020 21:36
question
Business, 30.03.2020 21:36
question
Mathematics, 30.03.2020 21:36
Questions on the website: 13722361