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 01:30
What kind of motivation is katrina showing? use the drop-down menu to complete the statement. katrina is using motivation because she is personally interested in learning more.
Answers: 2
question
Computers and Technology, 22.06.2019 02:00
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
question
Computers and Technology, 22.06.2019 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
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
Chemistry, 02.12.2020 20:50
question
Social Studies, 02.12.2020 20:50
question
English, 02.12.2020 20:50
question
Mathematics, 02.12.2020 20:50
question
Mathematics, 02.12.2020 20:50
Questions on the website: 13722359