Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 164 - 2609_Logicode
P. 164

    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

                             e.   To find the sum of all numbers stored in a list, where the list of numbers = [6, 5,
                                  3, 8, 4, 2, 5, 4, 11]

                             f.   To convert your name in lowercase.

                             g.   To create a basic calculator that performs addition, subtraction, multiplication,
                                  and division based on user input.

                                                                                                      21 st
                         3.   There are 17 goals in SDG. Select any five topics and create          Century   #Creativity
                                                                                                     Skills
                             separate posters on each of the 17 goals.

                         4.  Write a program to find sum of all elements in a list using functions.

                         5.  Type the given program and view the output.
                             Code:

                             DAYS = [

                                 ("Sunday", 1),
                                 ("Monday", 2),
                                 ("Tuesday", 3),
                                 ("Wednesday", 4),
                                 ("Thursday", 5),

                                 ("Friday", 6),
                                 ("Saturday", 7)

                      162   Premium Edition-VIII

| 159 160 161 162 163 164 165 166 167 168 169 |