Write a program that asks the user for a file name and then


Starting out with Cpp 8th edition Pg 449 #7 WITH MODIFICATIONS!

Write a program that asks the user for a file name, and then ask the user for up to 100 input values. Write the user input values to the file. Then read the contents of the file back into an array, and then display the following data:

lowest number

highest number

total of the numbers

average of the numbers

MODIFICATIONS:

Write the array back to a NEW file, in reverse order. Call this file reverse.txt.

Provide a "sentinel value" to allow the user to stop entering numbers. (if i only want 5 numbers, i should only have to enter 5 numbers, but if i want to enter 100, then i should be able to enter 100.)

Once you have the program working, create functions that calculate each of the items above. Your function should take an array and the size of the array as input, and return the value calculated.

So you should have a function that finds the minimum, a different function that finds the maximum, another function that gets the total.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that asks the user for a file name and then
Reference No:- TGS02930390

Expected delivery within 24 Hours