Python code for this scenario: There is a line of tourist trying to book a room for their vacation. The rates for each room is available below. The guest are allowed to book any room for any duration. Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Input: Number of guests: Name of guests: Letter of their room choice and the number of room: Duration of stay: Customer payment: Process: - The accommodation should be inputted as a string. If the value is not applicable, just ignore that item. - The duration of their stay will be arranged in ascending order to know who will check out soon Output: Guest names in ascending order based on the duration of their stay. Calculate your total sales and the total change. Example: Book now! Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Number of guests: 3 Name of guests: Moon Rose Sky Letter of their room choice and the number of room: A3 B2 C1 Duration of stay: 3 4 1 Customer payment: 14000 29000 8000 …….. Check-out list: Sky Moon Rose Total Sales: 50100 Total Change: 900

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%
Python code for this scenario: There is a line of tourist trying to book a room for their vacation. The rates for each room is available below. The guest are allowed to book any room for any duration. Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Input: Number of guests: Name of guests: Letter of their room choice and the number of room: Duration of stay: Customer payment: Process: - The accommodation should be inputted as a string. If the value is not applicable, just ignore that item. - The duration of their stay will be arranged in ascending order to know who will check out soon Output: Guest names in ascending order based on the duration of their stay. Calculate your total sales and the total change. Example: Book now! Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Number of guests: 3 Name of guests: Moon Rose Sky Letter of their room choice and the number of room: A3 B2 C1 Duration of stay: 3 4 1 Customer payment: 14000 29000 8000 …….. Check-out list: Sky Moon Rose Total Sales: 50100 Total Change: 900
Expert Solution
steps

Step by step

Solved in 4 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