Question: In Java, Create a GUI application that calculates and displays the total travel expenses of a businessperson on a trip. Here's the info that the
In Java,
Create a GUI application that calculates and displays the total travel expenses of a businessperson on a trip. Here's the info that the user must provide:
- Number of days on the trip
- Amount of airfare, if any
- Amount of car rental fees, if any
- Number of miles driven, if a personal vehicle was used
- Amount of parking fees, if any
- Amount of taxi charges, if any
-Conference or seminar registration fees, if any
-Lodging charges, per night
The company reimburses travel expenses according to the following policy:
- $37 per day for meals
- Parking fees, up to $10.00/day
- Taxi charges up to $20.00/day
- Lodging charges up to $95.00/day
- If a private vehicle is used, $0.27 per mile driven
The application should calculate and display the following:
- Total expenses incurred by the businessperson
- Total allowable expenses for the trip
- The excess that must be paid by the businessperson, if any
- The amount saved by the businessperson if the expenses were under the total allowed.
Please make the GUI appealing (not cluttered).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
