Page 358 - Information_Practice_Fliipbook_Class11
P. 358

Unsolved


          1.   Write a program to accept temperature in Fahrenheit and print the temperature in Celsius. Note: Formula for
             conversion
              C = (F - 32) * 5 / 9
          2.   Write a program to accept marks in three subjects and display the percentage of marks. Assume the maximum
             marks in each subject is 40.
          3.  Write a program to accept a number and print its square and cube.

          4.   Write a program that accepts the radius, r, height, h and slant height, sh of a cone, and calculates its volume
             and  surface  area.  Save  the  file  as  cone.py.  Also,  execute  the  program  and  write  the  output  in  the  space
             provided.
              The volume of a cone = (1 / 3) πr h cubic units
                                          2
              Surface area = π * r (r + L)
          5.  Write a program to display the area and perimeter of a rectangle.
          6.   Write a program that reads  a character as a user input, checks whether it is an alphabet, digit or a special
             character, and displays output such as the following:

             & is a special character.
             7 is a digit.
          7.   Write a program to develop a calculator. It accepts two numbers and a character operator  ( +, -, *, /) and displays
             the sum, difference, product, quotient , and remainder, respectively. An appropriate message should be displayed
             if any other character operator is passed as an operator.
          8.  Write a program to accept a number and compute its factorial.
          9.  Write a program to print the factors of a given number.
         10.  Write a program to accept a number and display its reverse.

         11.  Write programs in Python to print the following patterns:

                                                     Python Patterns
























         12.   Write a program that accepts a list of n numbers and prints the largest number. Do not use the built in methods,
             instead develop a function of your own to find the largest number in the list.
         13.  Write a program that displays alternate elements of a list.




          344  Touchpad Informatics Practices-XI
   353   354   355   356   357   358   359   360   361   362   363