Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help coding this program in C++ Write a program to solve the following specifications. Your program must have a minimum of 3 functions. Function

Need help coding this program in C++

Write a program to solve the following specifications. Your program must have a minimum of 3 functions.

Function 1: Read a file of data into arrays. There is an UNKNOWN number of records on the file. There is a maximum of 100 records on the file. (Note: Remember to pass the name of the file as a reference parameter).

The data is a customer ID number followed by the amount of a check. Create an input file with the data below. No error checking required.

Customer Amount (Titles not on the file)

AB101 100.00

BC102 250.00

DE105 300.00

FF106 100.00

GG110 50.00

......

......

eof

Function 2: Find the average of the amounts and display it on the screen.

Function 3: List all customers who have written checks higher than the average.

Sample output:

```

Higher than average of 160.00

BC102 250.00

DE105 300.00

```

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions