Determine the lowest and highest values in the file


Problem

The input for this program will come from a file that you will need to create. The file you create will be called Random.txt. The file should contain a list of random numbers (you pick the values) with each number on a different line within the file, use a text editor to create the file.

The program will open the file and reads all of the numbers from the file and calculates or determines the following:

• Counts how many numbers were read from the file
• Determine the lowest and highest values in the file
• The average of all the numbers in the file
• The sum of all the numbers in the file (a running total)

The program must validate that the file was opened before reading from the file. If not then provide a message to the user and then the program should end.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Determine the lowest and highest values in the file
Reference No:- TGS03232655

Expected delivery within 24 Hours