Answered step by step
Verified Expert Solution
Link Copied!

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 22 numbers in the file
C) Provides the sum of the first 15 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

Students also viewed these Databases questions

Question

Identify specific IT applications for HR planning.

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago