Create an application that calculates the total cost of a hotel stay.

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
100%

Visual Studio Program

1. Charges in a Luxury Resort (Nr 6, Page 410)
Create an application that calculates the total cost of a hotel stay. The daily accommodation charge is $550. The hotel also provides other services like restaurant and bar, spa, car rental, and medication and rehabilitation. The application should accept the following input:
 The number of days spent in the hotel
 The restaurant charges including VAT
 The amount accrued from spa and health treatments
 The amount accrued in car rental
 The amount accrued in medical and rehabilitation services
Create and use the following value-returning methods in the application:
 CalcStayCharges() – Calculates and returns the base charges for the hotel stay. This is computed as $450 times the number of days in the hotel.
 CalcMiscCharges() – Calculates and returns the total of the food bill, spa charges, car rental, and medication and rehabilitation charges.
 CalcTotalCharges() – Calculates and returns the total of all charges.

Resort Charges
No. of Days Stayed
Restaurant Charges including VAT 3287.87
Spa and Health Treamtment Charg 2303.20
Charges for Car Rental
1744.90
Medication and Rehabilitation Bill 823.50
Calculate Total Charges
Exit
Stay charges: $3.850.00
Miscellaneous charges: $8.159.47
Total Bill : $12.009.47
Transcribed Image Text:Resort Charges No. of Days Stayed Restaurant Charges including VAT 3287.87 Spa and Health Treamtment Charg 2303.20 Charges for Car Rental 1744.90 Medication and Rehabilitation Bill 823.50 Calculate Total Charges Exit Stay charges: $3.850.00 Miscellaneous charges: $8.159.47 Total Bill : $12.009.47
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

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