Question: Write a program in c + + that will read a set of numbers from a file into an array The array must be dynamic

Write a program in c++that will read a set of numbers from a file into an array
The array must be dynamic
The size is only as big as the number of values in the file
The program must calculate the size of the array. Do not hard code a value
All interaction with the array must be done via a pointer.
No bracket notation
Use pointer arithmetic to traverse the arrays
Search the array to find the following items:
The lowest number in the array
The highest number in the array
The sum of the numbers in the array
The average of the numbers in the array
Random.txt:
439714599932438
688977670756465
74860777491363
8888929928056
5429038592597
9397288778864
936576312245350
479899542223865
728453825494904
64878838299548
99499178724824
730496718974287
670900793819373
217134286814970
495148758570884
792368821379542
404635580238278
977884431876349
922516579732912
133855341695570

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!