subject

Write a program that computes and prints the average of the numbers in a text file. you should make use of two higher-order functions to simplify the design.

an example of the program input and output is shown below:

enter the input file name: numbers. txt

the average is 69.8



filename: numbers. txt

45 66 88

100 22 98

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
What are the different components of the cloud architecture?
Answers: 2
question
Computers and Technology, 24.06.2019 16:30
Pressing the backspace key deletes the text to the of the insertion point. the left or the right?
Answers: 1
You know the right answer?
Write a program that computes and prints the average of the numbers in a text file. you should make...
Questions
question
Chemistry, 21.02.2020 05:25
question
English, 21.02.2020 05:25
question
Mathematics, 21.02.2020 05:26
Questions on the website: 13722363