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 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
question
Computers and Technology, 25.06.2019 05:10
Maia notices that her paragraphs are too close to one another. she wants to increase this space. which arrangement of steps does maia follow after she goes to the paragraph command group in the ribbon? type in the space needed, go to the after menu, go to the spacing part of the box, and open the paragraph dialog box. go to the spacing part of the box, go to the after menu, open the paragraph dialog box, and type in the space needed. open the paragraph dialog box, go to the spacing part of the box, go to the after menu, and type in the space needed. type in the space needed, open the paragraph dialog box, go to the after menu, and go to the spacing part of the box.
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
Mathematics, 02.11.2020 23:00
question
Geography, 02.11.2020 23:00
question
History, 02.11.2020 23:00
question
Biology, 02.11.2020 23:00
question
Biology, 02.11.2020 23:00
Questions on the website: 13722361