Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am pulling a file and reading the Min,Max,Sum,Count and Avg I need help fixing the min and maximum finder as well as having the

image text in transcribed

image text in transcribed I am pulling a file and reading the Min,Max,Sum,Count and Avg

I need help fixing the min and maximum finder as well as having the program ask for another file name if the input is invalid

Write a C++ program that will: 1. Ask the user for the name of a data file. echo print the file name 2. open the data file - if the file fails to open print an error message and return to step 1 3. read an unknown number of integers from the file stop reading when you have reached the end of the file 4. report the Min, Max, Sum, Count, and Average of the data (round output Contents [hide] 1 Sample Run 2 Sample Input Data File 3 Documentation 4 Comments for Code Sections Sample Run [edit] Enter Data File Name: progila.txt min=10 Max=92 Sum =1284 Count =21 Average =61.14

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

Step: 3

blur-text-image

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

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions