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, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
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
Mathematics, 13.11.2020 16:50
question
Computers and Technology, 13.11.2020 16:50
Questions on the website: 13722362