Write a program that calculates and displays the totaltravel expences of a busin
ID: 3614461 • Letter: W
Question
Write a program that calculates and displays the totaltravel expences of a businessperson on a trip. The program shouldhave at least 11 functions that ask for and return thefollowing: - The total number of days spent on the trip - The time of departure on the first day of the trip, and thetime of arrival back home on the last day of the trip - The amount of any round-trip airfare - The amount of any car rentals - Miles driven, if a private vehicle was used. Calculate thevehicle expences as $0.27 per mile driven - Parking fees (the company allows up to $6 per day. Anythingin excess of this must be paid by the employee.) - Taxi fees, if a taxi was used anytime during the trip (thecompany allows up to $10 per day, for each day a taxi was used.Anything in excess of this must be paid by the employee.) - Conference or seminar registration fees - Hotel expenses (the company allows $90 per night forlodging. Anything in excess of this must be paid by theemployee.) - The amount of each meal eaten. On the first day of the trip,breakfast is allowed as an expense if the time of departure isbefore 7 a.m. Lunch is allowed if the time of departure is before12 noon. Dinner is allowed on the first day it the time ofdeparture is before 6 p.m. On the last day of the trip, breakfastis allowed if the time of arrival is after 8 a.m. Lunch isallowed if the time of arrival is after 1 p.m. Dinner is allowed onthe last day if the time of arrival is after 7 p.m. The programshould only ask for the amounts of allowable meals. (the companyallows only $9 for breakfast, $12 for lunch, and $16 for dinner.Anything in excess of this must be paid by the employee.) The program should calculate and display the total expensesincurred by the businessperson, the total allowable expenses forthe trip, the excess that must be reimbursed by the buisnessperson,if any, and the amount saved by the businessperson if the expenseswere under the total allowed. Input Validation: Do not accept negative number for anydollar amount or for miles driven in a private vehilce. Do notaccept numbers less than 1 for the number of days. Only acceptvalid times for the time of departure and the time ofarrival. Write a program that calculates and displays the totaltravel expences of a businessperson on a trip. The program shouldhave at least 11 functions that ask for and return thefollowing: - The total number of days spent on the trip - The time of departure on the first day of the trip, and thetime of arrival back home on the last day of the trip - The amount of any round-trip airfare - The amount of any car rentals - Miles driven, if a private vehicle was used. Calculate thevehicle expences as $0.27 per mile driven - Parking fees (the company allows up to $6 per day. Anythingin excess of this must be paid by the employee.) - Taxi fees, if a taxi was used anytime during the trip (thecompany allows up to $10 per day, for each day a taxi was used.Anything in excess of this must be paid by the employee.) - Conference or seminar registration fees - Hotel expenses (the company allows $90 per night forlodging. Anything in excess of this must be paid by theemployee.) - The amount of each meal eaten. On the first day of the trip,breakfast is allowed as an expense if the time of departure isbefore 7 a.m. Lunch is allowed if the time of departure is before12 noon. Dinner is allowed on the first day it the time ofdeparture is before 6 p.m. On the last day of the trip, breakfastis allowed if the time of arrival is after 8 a.m. Lunch isallowed if the time of arrival is after 1 p.m. Dinner is allowed onthe last day if the time of arrival is after 7 p.m. The programshould only ask for the amounts of allowable meals. (the companyallows only $9 for breakfast, $12 for lunch, and $16 for dinner.Anything in excess of this must be paid by the employee.) The program should calculate and display the total expensesincurred by the businessperson, the total allowable expenses forthe trip, the excess that must be reimbursed by the buisnessperson,if any, and the amount saved by the businessperson if the expenseswere under the total allowed. Input Validation: Do not accept negative number for anydollar amount or for miles driven in a private vehilce. Do notaccept numbers less than 1 for the number of days. Only acceptvalid times for the time of departure and the time ofarrival.Explanation / Answer
This is suppose to be a group project, are you being asked toto the whole program???? How many questions can you ask per day? I can send you this but I'd like to do in insections .Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.