Question: c + + code only, using ifstream, fstream , ofstream only!! no voids no std , On Blackboard obtain the file Numbers.txt . This file
c code only, using ifstream, fstream ofstream only!! no voids no std
On Blackboard obtain the file Numbers.txt This file contains a long list of random number.
Copy the file to your hard drive be sure to not include empty spaces at the end of the file
Write a program that opens the file and does the following:
A Counts the amount of numbers that are in the file
B Gives the average of the first numbers in the file
C Provides the sum of the first numbers in the file.
D Gives the minimum value found in the file.
E Gives the maximum value found in the file.
These values should be printed to the screen with appropriate output formatting and labels.
Note: For D & E you should NOT use the min and max functions. Using these functions
will cause for no credit.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
