Travel Expenses Create an 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 paid for meals, 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 M06_GADD4658_08_SE_C06.indd 425 05/01/19 2:33 PM426 Chapter 6 Procedures and Functions 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 business person if the expenses were under the total allowed The application should have the following functions: CalcMeals Calculates and returns the amount reimbursed for meals. CalcMileage Calculates and returns the amount reimbursed for mileage driven in a private vehicle. CalcParkingFees 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 be $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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

6. Travel Expenses
Create an 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 paid for meals, 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
M06_GADD4658_08_SE_C06.indd 425 05/01/19 2:33 PM426 Chapter 6 Procedures and Functions
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 business person if the expenses were under the total
allowed
The application should have the following functions:
CalcMeals Calculates and returns the amount reimbursed for
meals.
CalcMileage Calculates and returns the amount reimbursed for
mileage driven in a private vehicle.
CalcParkingFees 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 be $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.

 

made in visual basic 2017

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY