Arrays Case: Cost Is No Object 1. In earlier chapters, you developed programs fo
ID: 3624247 • Letter: A
Question
ArraysCase: Cost Is No Object
1. In earlier chapters, you developed programs for Cost Is No Object—a car rental service. Create an application that produces employee information for Cost Is No Object. The application prompts the user for an employee ID number, first and last names, street address, zip code, and job description code.
Any time the user enters an invalid value, continue to reprompt the user for the same data. Invalid values are:
· An employee ID number that is negative or greater than 999
· A zip code that is not in the list of allowed zip codes
· A job description code that is not between 10 and 19 inclusive
Fill in the blanks in the items listed below. Use the data in Table 5-1, 5-2, and 5-3.
num TAX_LIMIT = ________
num HIGH_TAX_RATE = ________
num LOW_TAX_RATE = ________
num ZIP_SIZE = ________
num JOB_SIZE = ________
num JOB_FACTOR = ________
num JOB_RANGE_SIZE = ________
num VALID_ZIPS[ZIP_SIZE] = ________, ________, ________,
________, ________, ________, ________, ________, ________
string CITIES[ZIP_SIZE] = “________”, “________”,
“________”, “________”, “________”,
“________”, “________”, “________”, “________”
string STATES[ZIP_SIZE] = “________”, “________”, “________”, “________”, “________”,
“________”, “________”, “________”, “________”
string JOBS[JOB_SIZE] = “________”, “________”,
“________”, “________”, “________”, “________”, “________”, “________”, “________”, “________”
num JOB_RANGE[JOB_RANGE_SIZE] = _______, _______, _______, _______, _______
num PAY_RATE[JOB_RANGE_SIZE] = 9, 14.5, 20, 65, 0
Explanation / Answer
Dear user, I tried to solve 8 blanks with highlight red. num TAX_LIMIT = 50 num HIGH_TAX_RATE =0.09 num LOW_TAX_RATE =0.02num ZIP_SIZE = 9
num JOB_SIZE =10
num JOB_FACTOR = 5 num JOB_RANGE_SIZE = 5 num VALID_ZIPS[ZIP_SIZE] = 76621, 63732, 88312 , 92230, 65689, 73527, 67146, 97883, 98592
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.