Get help now

Travel Expenses Problem Description

  • Pages 2
  • Words 462
  • Views 277
  • dovnload

    Download

    Cite

  • Pages 2
  • Words 462
  • Views 277
  • Academic anxiety?

    Get original paper in 3 hours and nail the task

    Get your paper price

    124 experts online

    Travel Expenses Problem Description: Write a C++ program that calculates and displays the total travel expenses of a business trip. The user must provide the following information: * Number of days spent on the trip. * The departure on the first day of the trip, and the time of arrival back home on the last day of the trip. The departure and arrival time must be entered in 12h or 24h formats. Your program should consider AM and PM. * The amount of meals eaten The company reimburses travel expenses according to the following policy: Up to $37. 0 per day for meals. The company allows up to $ 9 for breakfast, $ 12 for lunch, and $ 16 for dinner per day. On the first day of the trip, breakfast is allowed as an expense if the time of departure is before 7 AM. 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 6 PM. On the last day of the trip, breakfast is allowed if the time of arrival is after 8 AM. Lunch is allowed if the time of arrival is after 1 PM. Dinner is allowed on the last day if the time of arrival is after 7 PM.

    Anything in excess of this must be paid by the employee. It is not necessary reimburse to the company any savings on meals. It can be subtracted to the amount that must be reimbursing to the company. The following Table summarized this point. The program should calculate and display the following: * Total expenses incurred by the business person * The total allowable expenses for the trip * The excess for that must be paid by the business person, if any * The amount saved by the business person if the expenses were under the total allowed.

    These are the specifications and I have it done, because I understand that I have to begin with days and the input validation of this, but I want to optimize the code that I have to calculate the others things. I have to do the program with these functions CalcMeals ( ) Calculate and returns the amount reimbursed for meals. CalcMileage ( ) Calculate and returns the amount reimbursed for mileage driven in a private vehicle. CalcParkingFees ( ) Calculate and returns the amount reimbursed for parking fees. CalcTaxiFees ( ) Calculate and returns the amount reimbursed for taxi charges.

    CalcLodging ( ) Calculate and returns the amount reimbursed for lodging. CalcTotalReimbursement ( ) Calculate and returns the total amount reimbursed. CalcUnallowed ( ) Calculate and returns the total amount of expenses that are not allowable, if any. CalcSaved ( ) Calculate and returns the total amount of expenses under the allowable amount, if any. For example, the allowable amount for lodging is $95. 00 per night. If a business person stayed in a hotel for $85. 00 per day for 3 nights, the savings would be $ 30. 00.

    This essay was written by a fellow student. You may use it as a guide or sample for writing your own paper, but remember to cite it correctly. Don’t submit it as your own as it will be considered plagiarism.

    Need a custom essay sample written specially to meet your requirements?

    Choose skilled expert on your subject and get original paper with free plagiarism report

    Order custom paper Without paying upfront

    Travel Expenses Problem Description. (2017, Jan 31). Retrieved from https://graduateway.com/travel-expenses/

    Frequently Asked Questions

    Feel free to contact us anytime, we are always ready to help you!

    How do you describe travel expenses?
    Travel expenses are the ordinary and necessary expenses of traveling away from home for your business, profession, or job. You can't deduct expenses that are lavish or extravagant, or that are for personal purposes.
    What does travel and expenses cover?
    Examples of travel expenses include airfare and lodging, transport services, cost of meals and tips, use of communications devices. Travel expenses incurred while on an indefinite work assignment, which lasts more than one year according to the IRS, are not deductible for tax purposes.

    Hi, my name is Amy 👋

    In case you can't find a relevant example, our professional writers are ready to help you write a unique paper. Just talk to our smart assistant Amy and she'll connect you with the best match.

    Get help with your paper
    We use cookies to give you the best experience possible. By continuing we’ll assume you’re on board with our cookie policy