Question: Assignment - Chapter 7 ( Program 1 ) Due Tuesday by 1 1 : 5 9 pm Points 0 Submitting a file upload File Types

Assignment - Chapter 7(Program 1)
Due Tuesday by 11:59pm Points 0 Submitting a file upload File Types cpp, h, and txt
Available Jul 16 at 12 am - Jul 23 at 11:59pm
Read from a data file named data.txt that contains the following 10 numbers (38,22,19,9,34,3,89,91,55,1, each on a separate line; in that order. The program should read the content of the file into an array and then manipulate the array using loops, to display the following data:
The lowest number in the array
The highest number in the array
The total of the numbers in the array
The average of the numbers in the array, display two decimal places.
Make sure to submit your source code, header file and datafile.
Sample output
Lowest number: 1
Highest number: 91
Total of numbers: 361
Average of numbers: 36.10
Assignment - Chapter 7 ( Program 1 ) Due Tuesday

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!