Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this lesson, you will use Visual 2015 or 2017 C++ to write a program for the county auditor that uses parallel arrays to input,

In this lesson, you will use Visual 2015 or 2017 C++ to 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. Address Amount Due 151 Acorn 500 161 Acorn 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 menu?driven 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.

Text to input:

151 Acorn 500 161 Acorn 1500 200 Main 15000 500 Arcade 25000 181 Acorn 6000 120 Xenia 1000 200 Acorn 20000

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions