Question: C++ Write a program that reads a file containing some integer values (we do not know how many values). It displays the number and the

C++

 C++ Write a program that reads a file containing some integer

Write a program that reads a file containing some integer values (we do not know how many values). It displays the number and the sum up to that point. At last it displays sum of all numbers. Create a file, input.txt, and type the following 8 integers in it: 44444444 . The program writes the output to a file called output.txt. Your program should display an output similar to the one given below: The average of these 8 numbers is: 4 The sum of these 8 numbers is: 32

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!