Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I only need a flowchart that will lead me to writing the program ect Descri le Write a program that asks the user for a

I only need a flowchart that will lead me to writing the program

image text in transcribed

ect Descri le 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 numbers Notepad File Edit Format View Help 47 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 a The highest number in the array The total of the numbers in the array ray le . Out e average of the numbers in the array ease enter the name of the file to read numbers for Number Analysis program umbers.txt he highest value is 89 he lowest value is 8 he sum of the numbers is 52e uirements Use array in the main function for this project. Assume that the file contains numbers on separate lines and is constructed correctly he average of the numbers is 43.33 ress any key to continue .. 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: lease enter the name of the file to read numbers for Number Analysis program ncorrect file name.txt rror opening the file ress any key to continue. .. 1. Function Read the numbers from the file, store them into the array. The function 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 4. Function Find and return the total of all numbers in the number array. The 5. Function Find and return the average of all numbers in the number array. The accepts three arguments: reference to the input file (ifstream), array of numbers, array size. accepts two arguments: array of numbers, array size. tiwo arquments: array of numbers and array size. function accepts two arguments: array of numbers and array size function accepts two arguments: array of numbers and array size. The average should always show two decimal places

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Understand the principles of a learning organization.

Answered: 1 week ago

Question

1. How is the newspaper help to our daily life?

Answered: 1 week ago

Question

1. Prepare a short profile of Mikhail Zoshchenko ?

Answered: 1 week ago

Question

What is psychology disorder?

Answered: 1 week ago

Question

4. Who should be invited to attend?

Answered: 1 week ago