0% found this document useful (0 votes)
3 views23 pages

Yashika Rastogi Programme File

This document is a Computer Science programme file created by Yashika Rastogi for Class XII-C, acknowledging the support of her teacher and principal. It includes various programming exercises related to strings, lists, tuples, dictionaries, text files, and MySQL connectivity, each with corresponding outputs. The file serves as a showcase of the skills and knowledge acquired through the project.

Uploaded by

rajpoots13209
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views23 pages

Yashika Rastogi Programme File

This document is a Computer Science programme file created by Yashika Rastogi for Class XII-C, acknowledging the support of her teacher and principal. It includes various programming exercises related to strings, lists, tuples, dictionaries, text files, and MySQL connectivity, each with corresponding outputs. The file serves as a showcase of the skills and knowledge acquired through the project.

Uploaded by

rajpoots13209
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Programme file

Name: Yashika Rastogi


Class: XII-C

1
ACKNOWLEDGEMENT

I would like to take this opportunity to extend my sincere


gratitude and appreciation to my Computer Science teacher
Mr. Arun Khanna for providing guidance and support
throughout the process of completing my Computer Science
programme file for school. I am also thankful to my principal
Mrs. Bhawna Malik for allowing me the opportunity to
explore and work on this file in the school environment.
Additionally, I would like to express my heartfelt thanks to my
family for their unwavering support and encouragement
during the completion of this project. The invaluable lessons
and skills I have acquired through this project have enriched
my learning experience and have prepared me for future
challenges.
I am grateful for the opportunity to showcase my work to my
class, and I am proud to have contributed to the educational
environment at our school. I am truly grateful for the support
and encouragement I have received throughout this project.

2
INDEX
S.No Topic Page No.

1 String 4-6

2 List 7-9

3 Tuple 10-12

4 Dictionary 13-15

5 Text file 16-18

6 MySQL 19-22
Connectivity

3
STRING:-

1.Write a programme to accept a string and print the string


after capitalizing every other letter.

Output:-

2.Write a programme to input a string and count vowels in it.

Output:-

4
3.Write a programme to check whether the string is
palindrome or not.

Output:-

4.Write a programme that reads a string and displays no of


words in it.

Output:-
5
5.Write a programme to input a string and print the sting with
vowels removed.

Output:-

6
LIST:-

1. Write a programme to find at least one common element


in a list.

Output:-

2.Write a programme to accept values for list but only add the
even values.

Output:-

7
3.Write a list to read a list and remove duplicate elements.

Output:-

4.Write a programme to input a number and count its


occurrences in a given list.

8
Output:-

5.Write a programme to remove all odd numbers and


negative numbers from a list.

Output:-

9
Tuple:-

1.Write a programme to input elements of a tuple and then


print its maximum, minimum, mean and sum of all the
elements.

Output:-

2. To input two tuples and print after swapping their values.

Output:-

10
3. Write a program that creates a tuple storing first 9 terms of
Fibonacci series.

Output:-

4.Write a programme to count the number of pairs (a, b) such


that both a and b are even.

11
Output:-

5.Write a programme to find the mode of the given tuple.

Output:-

12
Dictionary:-

1. Write a program to enter names of employees and their


salaries as input and store them in a dictionary.

Output:-

2. Write a program to convert a number entered by the


user into its corresponding number in words.

Output:-

13
3. Write a programme to check if a key is present in a
dictionary or not.

Output:-

4.Write a programme which converts string to a dictionary.

Output:-

14
5.Write a programme to create a dictionary with the opposite
mapping.

Output:-

15
Text File:-

1.Write a programme to create a text file using user input and


display its content.

Output:-

2.Write a programme to display each word terminated by *.

16
Output:-

3.Write a python programme to count the number of vowels.

Output:-

4.Write a programme to display the words which are less than


4 characters.

17
Output:-

5. Write a programme to count the number of words in a file.

Output:-

18
MySQL Connectivity:-

1. To create and display a table named student in database


“project”.

Output:-

2. Write a programme to display a table named dress in


database named “Project”.

Output:-

19
3.Write a programme to display name, make and capacity of
cars in descending order of their capacity of table Carden in
database “project”.

Output:-

4.Write a programme to display the table orders by increasing


the discount to 25 from 0 in database “project”.

20
Output:-

5. Write a programme to display the product with its total


price(price*quantity) from table Product in database
“project”.

Output:-

21
22
THANK YOU

23

You might also like