Page 190 - Trackpad_V5_Book 8
P. 190
21 st
5. Create the following programs in Python. Century #Computational Thinking
Skills
a. To display a Restaurant menu with 10 dishes. The user can choose any dish by its
serial number and once he has selected a dish, the program will show its cost.
b. To check whether a number input by the user is divisible by both the numbers
6 and 7.
21 st #Communication
Century
c. To display the following output: Skills #Social Interaction
**** Welcome to the XYZ Hotel ****
----------------------------------------
Enter your name : Shweta
Enter your Contact No. : 9879023415
Enter no. of Rooms required : 3
Enter no. of Days to stay : 5
Enter Room Type (AC/Non-AC) : AC
---------------------------------------------------------
Welcome Miss Shweta, your Room has been booked.
Check-in Date : 12-10-2021
Check-out Date : 17-10-2021
Charge/day : 3000
Discount 10% : 300
---------------------------------------------------------
Total Payable Bill : 2700
d. To find the sum of all numbers stored in a list. Whereas, list of numbers = [6, 5, 3, 8,
4, 2, 5, 4, 11]
188 Pro (Ver. 5.0)-VIII

