Question: Write a program that does the following: (a) It asks for the cost of the flight (cFlight); (b) it asks for the total cost of
Write a program that does the following: (a) It asks for the cost of the flight (cFlight); (b) it asks for the total cost of accommodation (cHotel); (c) it asks the duration of the work trip in number of days (nDays) (d) it calculates the reimbursement for meals by multiplying nDays with a per-diem of $75 (cMeals); (e) it calculates the total reimbursement by adding the costs of flight, hotel and meals (tripCost); (f) it displays a message such as You will be reimbursed $300 for the flight, $500 for the accommodations, and $150 at per-diem for meals. Your total reimbursement is $950.; (g) it checks whether tripCost is less than $1000. If it is less than $1000, the program should display a second message such as You will be reimbursed for your trip cost in your next paycheck. If the tripCost exceeds $1000, the program should display a message such as You need to fill out the expense report to be reimbursed.
Needs to be done in Excel.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
