Write a program for a small hotel to create a bill for a group of guests. The hotel has three types of rooms, single (S)

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a program for a small hotel to create a bill for a group of guests. The hotel has three types of rooms, single (S)

Post by answerhappygod »

Write A Program For A Small Hotel To Create A Bill For A Group Of Guests The Hotel Has Three Types Of Rooms Single S 1
Write A Program For A Small Hotel To Create A Bill For A Group Of Guests The Hotel Has Three Types Of Rooms Single S 1 (44.03 KiB) Viewed 38 times
Write A Program For A Small Hotel To Create A Bill For A Group Of Guests The Hotel Has Three Types Of Rooms Single S 2
Write A Program For A Small Hotel To Create A Bill For A Group Of Guests The Hotel Has Three Types Of Rooms Single S 2 (44.03 KiB) Viewed 38 times
Write A Program For A Small Hotel To Create A Bill For A Group Of Guests The Hotel Has Three Types Of Rooms Single S 3
Write A Program For A Small Hotel To Create A Bill For A Group Of Guests The Hotel Has Three Types Of Rooms Single S 3 (44.03 KiB) Viewed 38 times
Write a program for a small hotel to create a bill for a group of guests. The hotel has three types of rooms, single (S), Double (D) and Triple (T). The program will prompt the user to enter the room type, price and number of rooms reserved by the guests for the three types of rooms. It will produce a report showing the room types, the price for each room type and the number of rooms reserved and the total price for each room type. For Example: Room Type Room Price Number of Rooms Total Price S $30 10 $300 D $50 8 $400 $70 5 $350 Then it will print the highest total price, lowest total price, overall total price, average price, percentage highest price, and discount. In the above example: Highest Total Price: $400 Lowest Total Price: $300 Overall Total Price: 51050 Average Total Price: $350 Percentage of Highest price: 38% Discount: $17.6 The discount is calculated as follows: Discount = 0.05/60 - El +0.005E where H=Highest total price L-Lowest total price E =0.75H +0.25L 1 Make use of the python predefined functions min(), max(), abs(), and round. Take a look at the uploaded sample program using these libraries. P/s: Hand in a soft copy of the assignment via the drop box on BU Class. Your assignment should be archived and given a name according to the following naming convention: FirstName LastName StudentID.rar
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply