You are on page 1of 24

REPORT FILE

• NAME – DIVYANSH PUROHIT


• CLASS -11TH - A
• ROLL NO. - 17
• SUBJECT – COMPUTER SCIENCE
• SUBJECT CODE – 083
• BOARD – CBSE (CENTRAL BOARD OF SECONDARY
SCHOOL)
• SCHOOL-QUEEN GLOBAL INTERNATIONAL SECONDARY
SCHOOL
acknowledgement
Primarily I would thank my parents who are providing me
education. Then I would like to thanks my class teacher as well as
my subject teacher Mrs. Khushboo Jain Mam who teaches me
Computer Science. Her valuable guidance, instructions and
suggestions has served as the major contributor towards the
completion of the project.
I also want to thank my friends and peer who helped me and
motivate me in various phases of project completion.
CONTENT/INDEX
S. NO. CONTENT / INDEX
1. Input a welcome message and display it.
2. Input two numbers and display the larger / smaller number.
3. Input three numbers and display the largest / smallest number.
4. Given two integers x and n, compute xn.
5. Write a program to input the value of x and n and print the sum
of the following series:

6. Determine whether a number is a perfect number, an Armstrong


number or a palindrome.

7. Input a number and check if the number is a prime or composite number.


8. Display the terms of a Fibonacci series.
9. Compute the greatest common divisor and least common
multiple of two integers.
10. Count and display the number of vowels, consonants, uppercase,
lowercase characters in string.

11. Input a string and determine whether it is a palindrome or not;


convert the case of characters in a string.

12. Find the largest/smallest number in a list/tuple

13. Input a list of numbers and swap elements at the even


location with the elements at the odd location.

14. Input a list/tuple of elements, search for a given element in the list/tuple.

15. Input a list of numbers and test if a number is equal to the sum of the
cubes of its digits. Find the smallest and largest such number from the given list of numbers.

16. Create a dictionary with the roll number, name and marks of n
students in a class and display the names of students who have
marks above 75.
1. INPUT A WELCOME MESSAGE AND DISPLAY IT.

CODE

OUTPUT
2. INPUT TWO NUMBERS AND DISPLAY THE LARGER / SMALLER NUMBER.

CODE

OUTPUT
3.INPUT THREE NUMBERS AND DISPLAY THE LARGEST / SMALLEST NUMBER.

CODE

OUTPUT
4. GIVEN TWO INTEGERS X AND N, COMPUTE XN.

CODE

OUTPUT
5. WRITE A PROGRAM TO INPUT THE VALUE OF X AND N AND PRINT THE SUM OF THE
FOLLOWING SERIES:

a) 1+x+x2+x3+x4+ xn

CODE

OUTPUT
b) 1-x+x2-x3+x4 + xn

CODE OUTPUT
c) x+x2/2+x3/3+x4/4+ xn/n

CODE OUTPUT
d) x+x2/2!+x3/3!+x4/4!+ xn/n!
CODE OUTPUT
6.DETERMINE WHETHER A NUMBER IS A PERFECT NUMBER, AN ARMSTRONG NUMBER
OR A PALINDROME.

CODE OUTPUT
7.INPUT A NUMBER AND CHECK IF THE NUMBER IS A PRIME OR COMPOSITE NUMBER

CODE

OUTPUT
8.DISPLAY THE TERMS OF A FIBONACCI SERIES

CODE

OUTPUT
9.COMPUTE THE GREATEST COMMON DIVISOR AND LEAST COMMON MULTIPLE OF TWO
INTEGERS

CODE

OUTPUT
10. COUNT AND DISPLAY THE NUMBER OF VOWELS, CONSONANTS, UPPERCASE,
LOWERCASE CHARACTERS IN STRING.

CODE OUTPUT
11. INPUT A STRING AND DETERMINE WHETHER IT IS A PALINDROME OR NOT; CONVERT
THE CASE OF CHARACTERS IN A STRING.

CODE OUTPUT
12. FIND THE LARGEST/SMALLEST NUMBER IN A LIST/TUPLE

CODE OUTPUT
13. INPUT A LIST OF NUMBERS AND SWAP ELEMENTS AT THE EVEN
LOCATION WITH THE ELEMENTS AT THE ODD LOCATION

CODE OUTPUT
14. INPUT A LIST/TUPLE OF ELEMENTS, SEARCH FOR A GIVEN ELEMENT IN THE
LIST/TUPLE
OUTPUT CODE
15. INPUT A LIST OF NUMBERS AND TEST IF A NUMBER IS EQUAL TO THE SUM OF THE
CUBES OF ITS DIGITS. FIND THE SMALLEST AND LARGEST SUCH NUMBER FROM THE
GIVEN LIST OF NUMBERS.

CODE OUTPUT
16. CREATE A DICTIONARY WITH THE ROLL NUMBER, NAME AND MARKS OF N
STUDENTS IN A CLASS AND DISPLAY THE NAMES OF STUDENTS WHO HAVE
MARKS ABOVE 75.

CODE OUTPUT
BIBLIOGRAPHY
• COMPUTER SCIENCE WITH PYTHON TEXTBOOK FOR 11TH CLASS
(BY SUMITA ARORA)
• COMPUTER SCIENCE NOTES (BY KHUSHBOO JAIN MAM)
• PYTHON 3.9.0 SHELL(IDLE)
• PYTHON SCRIPT MODE

Divyansh Purohit

You might also like