Write a small program that will do the following:

a)Prompt the user and accept user input for the following information:

  • Employee Name
  • The number of days the user spent on a business trip.
  • The total amount spent on meals.
  • The total amount spent on airfare.
  • The total amount spent on car rentals.
  • The total amount spent on hotel bills.
  • The total amount of the expense advance the user received.

b) Display a report that displays the following where 9999.99 is replaced with the correct values based on what was entered by the user in step a) above:

Please note the following:

  • Decide on what variables you are going to need for this program and put them in your housekeeping area of your program.
  • Allow the user to input the seven fields mentioned above.
  • Generate methods that would do the following:
    • Calculate the Average Meal Expense which is the total amount spent on meals divided by the number of days.
    • Calculate Total Amount Due which is the expense advance minus the total amount spent on the trip. See image.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.