Question: Could you help me solve the question YouTube Maps Learning Portal Courses Reports e-Services Academic Departments ETC - CIMS - program should take two inputs:

 Could you help me solve the question YouTube Maps Learning Portal

Courses Reports e-Services Academic Departments ETC - CIMS - program should take

Could you help me solve the question

YouTube Maps Learning Portal Courses Reports e-Services Academic Departments ETC - CIMS - program should take two inputs: the room type and number of nights to stay in the hotel. Your program should implement a programmer defined function that takes two parameters: the room type and the number of nights. The function should return the stay price calculated based on the above formula. Use an i[/elif statement to select the appropriate night price and room tax based on the room type. The output of your program should look like the following: Enter the required room type .........: Suite Enter the number of nights to stay ...: 5 Price for staying in Suite room for 5 nights is OMR 570.00. Make sure to add the following comments to the beginning of our code. # FileName : hotel.py # StudentID : # Student Name: Run and test your program. Once done, submit the file named hotel.py at the link below. https://moodle.nct.edu.om/mod/assign/view.php?id=37277 7 " B I 15 E E gs .docx W YouTube Maps Learning Portal Courses Reports e-Services Academic Departments ETC - CIMS A 5-start hotel provides three types of rooms for guests with the following rates: Room Type Night Price (in OMR) Room Tax Double 35 1.4 King 45 1.7 Suite 60 1.9 The price for staying in in the hotel is determined based on the night price of the room and the number of nights a guest will stay according to the following formula: Stay Price Room Tax x No. of Nights x Night Price For example, if a guest wants to stay in a Double room for three nights, the full stay price is 1.4 x 35 x 3which is equal to 147.0. Write a program named hotel.py that calculates the prices of staying in this hotel. The program should take two inputs: the room type and number of nights to stay in the hotel. Your program should implement a programmer defined function that takes two parameters: the room type and the number of nights. The function should return the stay price calculated based on the above formula. Use an if/elif statement to select the appropriate night price and room tax based on the room type. The output of your program should look like the following: docx

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!