Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment you are asked to implement a program to handle Travel Requests for ISU faculty. The program first displays a welcome message and
In this assignment you are asked to implement a program to handle Travel Requests for ISU faculty.
The program first displays a welcome message and then asks the user to input the details of their travel request along with different expenses. The program then calculates the total cost by adding up the different costs. You may assume that the tax rate is of the entire cost and that the dates will be entered in the following format: mmddyyyy eg
Notice that registration fees and travel costs are one time fees whereas other fees are daily. The total cost for the meals should take into account the total number of travel days to account for meals you have at the airport, for example whereas the total cost for hotel stay should take into account the total number of nights. For example, if travel dates are from May nd to May th then Total days of travel is days while Total nights of stay are nights.
You are provided with the file TravelManager.java with some starter code for reading the values of the different user inputs and storing them as variables with appropriate data types.
You still need to add other variables needed for storing the number of days and nights as integers, the different calculated costs, taxes, as well as total cost as doubles and you need to define the tax rate as a constant.
The program will finally output a summary of expenses as shown below. Please follow the sample run of the program given below for formatting the output. Text in blue are values entered by the user.
Welcome to ISU Travel Request Management Platform!
Please enter information below:
Name: John Snow
Travel Purpose: Attend a conference
From Date:
To Date:
Registration fee:
Travel Cost:
Meal cost per day:
Daily Hotel rate:
Thank you Dr Snow! Below is a summary of your request
Summary of Expenses
Total days of travel is days Total nights of stay are nights Travel $ Hotel $ Meals $ Registration $ Taxes $ Total $
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