Question
Write a program that calculates and displays the total travel expenses of a
businessperson on a trip. The program should have functions that ask for and return the following:
The total number of days spent on the trip
The time of departure on the first day of the trip, and the time 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 the vehicle expense as $0.38 per mile.
Parking fees (The company allows up to $6 per day. Anything in excess of this must be
paid by the employee.)
Taxi fees, if a taxi was used anytime during the trip (The company 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
businessperson on a trip. The program should have functions that ask for and return the following:
The total number of days spent on the trip
The time of departure on the first day of the trip, and the time 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 the vehicle expense as $0.38 per mile.
Parking fees (The company allows up to $6 per day. Anything in excess of this must be
paid by the employee.)
Taxi fees, if a taxi was used anytime during the trip (The company 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