63 076
Assignments Done
99,1%
Successfully Done
In July 2018

# Answer to Question #18201 in C++ for hwankim

Question #18201

Write a program that calculates and displays the total travel expenses of a businessperson on a trip. The program should declare all variables in the main function and then call the functions to ask for and return the following:

The amount of each meal eaten. On the first day of the trip, breakfast is allowed as an expense if the time of departure is before 7am. Lunch is allowed if the time of departure is before 12 noon. Dinner is allowed on the first day if the time of departure is before 6pm. On the last day of the trip, breakfast is allowed if the time of arrival is after 8am. Lunch is allowed if the time of arrival is after 1pm. Dinner is allowed on the last day if the time of arrival is after 7pm. The program should only ask for the amounts of allowable meals. (The company allows up to $9 for breakfast,$12 for lunch, and \$16 for dinner. Anything in excess of this must be paid by the employee.)

this is part Im having trouble with
Dear customer,
Please submit it with all requirements as an assignment to our control panel and
we&#039;ll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Assignment Expert
09.01.15, 15:01

Dear customer,