Question: can anyone help me with this program? This is for c++ 1 Look at the file numbers.txt available on BlackBoard. Copy this file in your

 can anyone help me with this program? This is for c++can anyone help me with this program? This is for c++ 1

Look at the file "numbers.txt" available on BlackBoard. Copy this file in your hard drive. This file contains one integer per line. file "numbers. txt"; 16 13 34 90 11 2 55 81 84 100 Here, you need to write a C++ program that opens the file, read 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 c) The average of all the numbers in the file After the program calculates the above, the program should write the three results in a new file called "results. txt". A sample "results t" is given below: Number of numbers in the file = 8 sum of the numbers = 60 Average of the numbers = 7.5 include features in your C++ program that checks if a number is odd or even. Your program should write the number of even numbers and odd numbers into the output file "results.txt". A Sample "results/txt" file should like this. Note that the numbers.txt file has a lot more numbers than 8. Number of numbers in the file = 8 Sum of the numbers = 60 Average of the numbers = 7.5 Number of Odd numbers = 5 Number of Even numbers = 3

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!