Answered step by step
Verified Expert Solution
Link Copied!

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 10% of the entire cost and that the dates will be entered in the following format: mm-dd-yyyy (e.g.,05-22-2024).
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 22nd to May 28th, then Total days of travel is 7 days while Total nights of stay are 6 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: 05-22-2024
To Date: 05-28-2024
Registration fee: 120
Travel Cost: 502.25
Meal cost per day: 20
Daily Hotel rate: 108.50
Thank you Dr. Snow! Below is a summary of your request
1
************************
Summary of Expenses
************************
Total days of travel is 7 days Total nights of stay are 6 nights Travel --------------------$502.25 Hotel --------------------$651.00 Meals --------------------$140.00 Registration --------------$120.00 Taxes ---------------------$141.33 Total ---------------------$1554.58

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

Students also viewed these Databases questions