Question: Write a program that asks the user for a file name. The program should read the contents of the file in to an array and

 Write a program that asks the user for a file name.
The program should read the contents of the file in to an

Write a program that asks the user for a file name. The program should read the contents of the file in to an array and then display the lowest number, the highest number, the total and average of the numbers in the array Project Specifications Input for this project: Assume the file contains a series of 12 numbers, each written on a separate line. The user must enter the name of the input file. Output: If the input file does not open, an error message should appear on the console. The program should 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 Processing Requirements Use array in the main function for this project. Assume that the file contains numbers on separate lines and is constructed correctly Prompt for and get the input file name and try to open the file. If the file opens, read the numbers from the file, store them into the array. If the file does NOT open, print an error message on the console. If the file is not found, do NOT process the numbers. Create five functions for the following: 1. Function Read the numbers from the file, store them into the array. The function accepts three arguments: reference to the input file (itstream), array of numbers, array size. accepts two arguments: array of numbers, array size. two arguments: array of numbers and array size. 2. Function Calculate and return the lowest number in the array. The function 3. Function Find and return the highest number in the array. The function accepts

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 Databases Questions!