Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EGR 281 - Project 11 due Wednesday, November 8 by 6:00 PM According to Internal Revenue Service beginning on Jan. 1, 2017, the standard mileage
EGR 281 - Project 11 due Wednesday, November 8 by 6:00 PM According to Internal Revenue Service beginning on Jan. 1, 2017, the standard mileage rates for the use of a car (also vans, pickups or panel trucks) will be 53.5 cents per mile for business miles driven. Write a Travel Mileage Reimbursement Calculator program called TMRcalculator that uses an array to calculate the distance between the cities based on the chart below. You should ask the user to enter the number of cities visited this trip. You should then ask the user for a starting point city then you should ask the user to enter the next destination city until the all the cities have been visited After you supply an appropriate prompt, you should have the user enter numbers instead of typing city names for example Enter 1 for Boston, 2 for Chicago, 3 for Dallas, etc. Your program should look up the distance between the cities and display this to the user. Finally, with appropriate information the program will display the total amount of travel mileage and the correct travel mileage reimbursement. Hint: This requires a 10 by 10 integer array do not include the city names in your integer array.You should have a separate String array for the city names. Boston Chia RnoLos AngelesMNew On TorontoVancuvrWash DC 1753 2752 9211780 1230 3017 2048 1399 1507 919 3155 2176 2234 448 709 1307 004 609 Chicago 1004 1753 2752 1397 1343 921 1435 1732 1858 860 Las Angeles 2048 1397 919 515 1399 272 1343 2570 517 1732 1435 2251 2234 1322 1307 2420 2716 2716 1858 2523 1494 1307 1278 3447 2734 1057 1099 New Orleans 1507 860 1494 3447 1057 Toronto 3155 448 1278 2646 1307 2734 1099 2887 Wash DC 709 571 Don' t forget to include your name, the project number, the due date, the current date and a short description of the program Ccomments at the top of your program ile. Also be sure to use good variable names. Please send your .class and .java files to the dropbox. Also turn in a printed copy of your code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started