Question
You are working for ABC Systems Engineering, INC. Your company asked you to have a business trip to New York for 3 days. Your Company
You are working for ABC Systems Engineering, INC. Your company asked you to have a business trip to New York for 3 days.
Your Company is going to pay for all expenses include travelling, Hotel and meal.
You have a choice to drive to and from New York or travel use airplane. If you choose to drive, the company will pay $0.75 per mile
(Estimated miles are 500 mile round trip and the estimated toll are $75.00)
If you decide to fly to New York, the total cost for round trip is $450.00.
The company will pay for transportation from and to hotel and airport up to $150.00
Hotel expenses are $225.00 per night.
The company allows you to spend up to $75.00 per day for your meal.
Write a java class to calculate the total expenses for this business trip for either driving or fly to and from New York
Guidelines for calculating the total expense:
Write an algorithm to calculate the total expenses.
Define and declare all the variables you will use to calculate the total expenses.
Assign a value for each variable as needed.
Print out the total trip expense.
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