GBN SR.SEC.
SCHOOL, 21-D, FARIDABAD
          Computer Science
     PRACTICAL FILE
            (2023-2024)
                          Name – Mehul Sood
                             Class - 11 A
                            Roll No. - 21
                ACKNOWLEDGEMENT
I want to express my immense gratitude to my computer science
teacher, Mrs. Namrata Arora, for her help and guidance in
completing the investigatory project.
I would also like to thank my parents and friends who gave me their
ideas and inputs in making this project. Most of all I thank our school
management and our respected principal Mrs. Nisha Sharma for
providing us with all the facilities and opportunities to make this
project successful.
                       CERTIFICATE
This is to certify that Mehul Sood of class 11th A, a student of GBN
Sr. Sec. School, 21-D, Faridabad has successfully completed the
computer science project file during the academic session 2023-24
under the guidance of Mrs. Namrata Arora.
     Signature
(Ms. Namrata Arora)
                              INDEX
S. No                          Practical
 1        Write a program to swap two numbers without using a
                             third variable
 2       Write a program to find whether a year is a leap year or
                                  not
 3      Find the sum of all the positive numbers entered by the
        user. As soon as the user enters a negative number, stop
         talking in any further input from the user and display
                                 the sum
 4      Python program to print all occurrences of words
        staring with vowels
 5       Write a program to generate the sequence -5, 10, -15,
         20, -25….. upto n, where n is an integer input by the
                                user
 6          Write a program to print the following pattern
                          1
                          12
                          123
                          1234
                          12345
 7       Python program to print the no. of times a character
                 has occurred in the entered string
 8          Write a program to print the following pattern
                              12345
                                1234
                                 123
                                   12
                                      1
 9         Write a program using a user defined function
          myMean() to calculate the mean of floating values
                          stored in a list
 10       Write a program to find the factorial of a number
11    Write a program to find the longest sub-string from a
                             string
12   Write a program using a user defined function to check
                if a string is a palindrome or not
13   Write a function deleteChar() which inputs a string and
      a character. The function should create a new string
     after deleting all the occurrences of the character from
               the string and returns the new string
14        Write a program to reverse the entered string
15   Write a program that accepts a string and replaces the
      vowels with asterisks (*) and returns the new string
Write a program to swap two numbers without
            using a third variable
Write a program to find whether a year is a leap
                 year or not
Find the sum of all the positive numbers entered
    by the user. As soon as the user enters a
  negative number, stop talking in any further
    input from the user and display the sum
Python program to print all occurrences of
        words staring with vowels
 Write a program to generate the sequence -5,
10, -15, 20, -25….. upto n, where n is an integer
                input by the user
Write a program to print the following pattern
                      1
                     12
                    123
                   1234
                  12345
 Python program to print the no. of times a
character has occurred in the entered string
Write a program to print the following pattern
                  12345
                    1234
                     123
                       12
                          1
Write a program using a user defined function
 myMean() to calculate the mean of floating
            values stored in a list
Write a program to find the factorial of a
               number
Write a program to find the longest sub-string
               from a string
Write a program using a user defined function
 to check if a string is a palindrome or not
Write a function deleteChar() which inputs a
string and a character. The function should
  create a new string after deleting all the
occurrences of the character from the string and
             returns the new string
 Write a program to reverse the entered string
Write a program that accepts a string and
replaces the vowels with asterisks (*) and
          returns the new string