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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!