Question: Create a Visual Basic application that calculates and displays the total travel expenses for a business trip. The user must provide the following information: Number

Create a Visual Basic application that calculates and displays the total travel expenses for a business trip. The user must provide the following information: Number of days on the trip amount of airfare, if any amount of car rental fees, if any number of miles driven , if a private vehicle was used amount of parking fees , if any amount of taxi charges, if any conference or seminar registration fees, if any lodging charges, per night The company reimburses travel expenses according to the following policy: - 37 per day for meals -Parking fees, up to $10.00 per day -Taxi Charges up to $20.00 per day -Lodging charges up to $95.00 per day -If a private vehicle is used, $0.27 per mile driven The application should calculate and display the following: -Total expenses incurred by the business person -The total allowable expenses for the trip -The excess that must be paid by the business person, if any -The amount saved by the the business person if the expenses were under the total allowed. the applications should have the following function: CalcMeals Calculates and returns the amount reimbursed for meals. CalcMileage Calculates and returns the amount reimbursed for mileage driven in a private vehicle CalcParking Fees calculates and returns the amount reimbursed for parking fees CalcTaxiFees Calculates and returns the amount reimbursed for taxi charges CalcLodging Calculates and returns the amount reimbursed for lodging CalcTotalReimbursement Calculates and returns the total amount reimbursed CalcUnallowed Calculates and returns the total amount of expenses that are not allowable, if any. These are parking fees that exceed $10.00 per day, taxi charges that exceed $20.00 per day and lodging charges that exceed $95.00 per day CalcSaved Calculates and returns the total amount of expenses under the allowable amount, if any . For example, the allowable amount for lodging is $95.00 per day. If a business person stayed in a hotel for $85.00 per day for five days, the savings would $50.00

Input validation: Do not accept negative numbers for any dollar amount or for miles driven in a private vehicle. Do not accept numbers less than 1 for the number of days.

I'm having trouble getting the calculations to work with this example

Travel Days: 5

Private Vehicle Miles:300

Airfare:1000

Car Rental Fees:500

Parking Fees:100

Taxi Charges:100

Registration Fees:100

Lodging Per Night: 100

Meals:100

The totals they got were Expenses:$2,400 Reimbursements: $431.00 Exceedings:$50.00 and Savings: $460.00

I'm wondering how they got those totals with the example input?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!