RABINDRANATH WORLD SCHOOL
Session 2023-24
COMPUTER SCIENCE (083)
COMPUTER PROGRAMMING
SUBMITTED TO: SUBMITTED
BY:
Mrs. Jeenia Choudhary Name: Anish Sharma Class:
XII- SCIENCE
Roll No:
CERTFICATE
THIS IS TO CERTIFY THAT THIS PROJECT IS
THE BONAFIDE WORK OF
ANISH SHARMA
OF CLASS
XII-SCIENCE
AND HAS BEEN SUCCESSFULLY
COMPLETED AND IS TAKEN TO BE AN
ISSUE CONDUCTED BY C.B.S.E. IN THE
SESSION 2023-
24.
External’s Principal’s Internals’
Signature Signature Signature
ACKNOWLEDGEMENT
I would like to extend my sincere and heartfelt
obligation towards all those who have helped me in
making this project. Without their active guidance,
help, cooperation and encouragement, I would not
have been able to present the project on time.
I am extremely thankful to pay my sincere gratitude
to my teacher Mrs Jeenia Choudhary for his
valuable guidance and support for completion of
this project.
I also acknowledge with deep sense of reverence,
my gratitude towards my parents, other faculty
members of the school and friends for their
valuable suggestions given to me in completing this
project.
INDEX
S.NO PROGRAMS
1. Write a program to input a number and print its
square root.
2. Write a program that inputs an integer in range. 0-
999, and then print if the integer is a 1/2/3-digit
number.
3. Write a program to print cubes of numbers in
range of 15 to 20.
4. Write a program that multiplies two integers
without using * operator, using repeating addition.
5. Write a program that asks the user to input
numbers of seconds and then express it in terms of
how many minutes and seconds it contains.
6. Write a program to create a dictionary containing
names of competition winner students as key and
number of their wins as values.
7. Write a program that adds individual elements of
list 2 and 3 to list1. The resultant list should be in
order of elements of list 3, list 1 and list 2.
8. Write a program that finds an element’s index in a
type without using index ().
9. Write a program that takes a string with multiple
words and then capitalizes the first letter of each
word and forms a new string out of it.
10. Write a program to calculate simple interest using
a function interest that can receive principal
amount, time and rate and returns. Calculate
simple interest.
11. Write a program to store and display multiple
integers in and from a binary file.
12. Write a program to insert / appears a record in
binary file “student file”.
13. Write a program that defines roll numbers from
the user whose name is to be updates.
14. Write a program to read byte by byte from a file
using seek () and tell ().
15. Write a program to read a text file line by line and
display each word separately by a#.
16. Write a program to read a text file and display the
number of vowels/consonants/upper
case/lowercase characters in the file.
17. Write a program to remove all the lines that
contain the character ‘a’ in a file and write it to
another file.
18.. Write a program to find whether an inputted
number is perfect or not.
19. Write a program to obtain a random number
generates random number between 1&6.
20. Write a program to check if the entered no. is
Armstrong or not.
21. Write a program to sort a sequence using
insertion lost.
1. Write a program to input a number and print its
square root.
>>> INPUT
>>> OUTPUT
2. Write a program that inputs an integer in range
0-999, and then print if the integer is a 1/2/3 digit
number.
>>> INPUT
3. Write a program to print cubes of numbers in range
of 15 to 20.
>>> INPUT
>>> OUTPUT
4. Write a program that multiplies two integers
without using * operator, using repeating addition.
>>> INPUT
>>> OUTPUT
5. Write a program that asks the user to input
numbers of seconds and then express it in terms of
how many minutes and seconds it contains.
>>> INPUT
>>> OUTPUT
6. Write a program to create a dictionary containing
names of competition winner students as key and
number of their wins as values.
>>> INPUT
>>> OUTPUT
7. Write a program that adds individual elements of
list 2 and 3 to list1. The resultant list should be in
order of elements of list 3, list 1 and list 2.
>>> INPUT
>>> OUTPUT
8. Write a program that finds an element’s index in a
type without using index ().
>>> INPUT
>>> OUTPUT
9. Write a program that takes a string with multiple
words and then capitalizes the first letter of each
word and forms a new string out of it.
>>> INPUT
>>> OUTPUT
10. Write a program to calculate simple interest using
a function interest that can receive principal
amount, time and rate and returns. Calculate
simple interest.
>>> INPUT
>>> OUTPUT
11. Write a program to store and display multiple
integers in and from a binary file.
>>> INPUT
>>> OUTPUT
12. Write a program to insert / appears a record in
binary file “student file”.
>>> INPUT
>>> OUTPUT
13. Write a program that defines roll numbers from
the user whose name is to be updates.
>>> INPUT
>>> OUTPUT
14. Write a program to read byte by byte from a file
using seek () and tell ().
>>> INPUT
>>> OUTPUT
15. Write a program to read a text file line by line and
display each word separately by a#.
>>> INPUT
>>> OUTPUT
16. Write a program to read a text file and display the
number of vowels/consonants/upper
case/lowercase characters in the file.
>>> INPUT
>>> OUTPUT
17. Write a program to remove all the lines that
contain the character ‘a’ in a file and write it to
another file.
>>> INPUT
>>> OUTPUT
Sampleold.tx
t
Sampleold.txt
Samplenew.txt
18. Write a program to find whether an inputted
number is perfect or not.
>>> INPUT
>>> OUTPUT
19. Write a program to obtain a random number
generates random number between 1&6.
>>> INPUT
>>> OUTPUT
20. Write a program to check if the entered no. is
Armstrong or not.
>>> INPUT
>>> OUTPUT
21. Write a program to sort a sequence using insertion
lost.
>>> INPUT
>>> OUTPUT