Page 182 - trackpad v5.1 class 8 flipbook
P. 182

21 st   #Communication
                                                                                            Century
                        d.  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


                        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.





















                  180   Pro (V5.1)-VIII
   177   178   179   180   181   182   183   184   185   186