Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started