Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program for the county auditor that uses parallel arrays to input, print, search, find largest amount due and sort the tax data. Input

Write a program for the county auditor that uses parallel arrays to input, print, search, find largest amount due and sort the tax data.

Input Data: The data below can be found in the prog3.txt input file.

Adress Amount Due
151 Acorn 500
161 Acron 1500
200 Main 15000
500 Arcade 25000
181 Acorn 6000
120 Xenia 1000
200 Acorn

20000

Requirements 1. Use input file prog3.txt to load parallel arrays.

2. Use a menudriven program with the following choices

a. Display property tax data

b. Look up taxes for a particular address

c. Sort tax amounts into ascending order

d. Display property address with the largest amount due

e. Exit the program

3. Use the following 6 functions

a. void loadArrays (string[], double[], int &);

b. void showArrays (string[], double[], int);

c. void lookUpTaxes (string[], double[], int);

d. void sortTaxes (string[], double[], int);

e. void biggestTaxes (string[], double[], int);

f. int showMenu (); displays the menu and inputs and returns the users menu choice.

4. Main program

a. Load the arrays from input file prog3.txt

b. Use a while loop that calls showMenu to input and return the users menu choice, then call the appropriate function based on the users choice, using if .. else or switch.

Hint: loadArrays(address, amtDue, length);

choice = showMenu();

while (choice !=5)

{ if (choice ==1)

{ showArrays (address, amtDue, length); }

else if (choice == 2)

{ lookUpTaxes (address, amtDue, length); }

else if (choice ==3)

{ sortTaxes(address, amtDue, length); }

else if (choice == 4)

{ biggestTaxes(address, amtDue, length); }

else cout << "invlaid choice try again "; choice = showMenu(); }

5. Output must be labelled and easy to read as shown in the sample output below.

6. Appropriately pass parameters, declare local variables, so that you do not access global variables from the functions. a. Program must be documented with the following: Name, Date, Program Name, and Description

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

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

disadvantage of having a secreatry in a company

Answered: 1 week ago

Question

Discuss communication challenges in a global environment.

Answered: 1 week ago