0% found this document useful (0 votes)
18 views

Computer Science (083) Aissce: SUBMITTED BY.: - Vivek Yadav GUIDED BY.: - Satish Pandey

The document is a certificate from the Army Public School certifying that student Vivek Yadav completed practical work for the subject "Computer Science with Python" under the supervision of Satish Pandey in the 2021-2022 session according to specifications by the Central Board of Secondary Education. It includes 20 programs written by Vivek Yadav in Python to solve various problems related to calculations, patterns, sorting, dictionaries, functions, file handling, and more.

Uploaded by

Sushant Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Computer Science (083) Aissce: SUBMITTED BY.: - Vivek Yadav GUIDED BY.: - Satish Pandey

The document is a certificate from the Army Public School certifying that student Vivek Yadav completed practical work for the subject "Computer Science with Python" under the supervision of Satish Pandey in the 2021-2022 session according to specifications by the Central Board of Secondary Education. It includes 20 programs written by Vivek Yadav in Python to solve various problems related to calculations, patterns, sorting, dictionaries, functions, file handling, and more.

Uploaded by

Sushant Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 33

COMPUTER SCIENCE(083) AISSCE

2021-2022
SUBMITTED BY.: - Vivek Yadav
GUIDED BY.: - Satish Pandey
~ Vivek Yadav
Certificate
This is to certify the scholar’s name Vivek Yadav of
class 12th B of Army Public School, LBS Marg with
Roll no 2368559 has completed practical work of
subject “Computer Science with Python, code (083)”
under my supervision in session 2021-2022 and it is
according to specifications provided by Central
Board of Secondary Education.

TEACHER’S PRINCIPAL’S
SIGNATURE SIGNATURE
(Mrs. Meenakshi Jayaswal)

1|Pag
~ Vivek
Program-2
Write a program to calculate the distance of 1056 feet in terms of
yards and miles. Given fixed values are: 1miles=1760 yards and
1yards=3feet
Program: -

===============================================================================================

Program output: -

2|Pag
~ Vivek
Program-3
An athlete is taking round of a triangular path with sides as 30m,
25m and 35m. The athlete has run 560m till now, write a program to
print how many rounds of park the athlete has completed.

Program: -

===============================================================================================

Program output: -

3|Pag
~ Vivek
Program-3
Write a program that print a table on two columns on the left the
integer temperature between 0 and 100 Fahrenheit and in the right
column the corresponding Celsius values

Program: -

===============================================================================================

Program output: -

4|Pag
~ Vivek

5|Pag
~ Vivek

6|Pag
~ Vivek

7|Pag
~ Vivek
Program-8
Write a program to obtain side from user and print the area of
equilateral triangle with side ‘a’.

Program: -

===============================================================================================

Program output: -

8|Pag
~ Vivek
Program-5
Write a program to print the ‘Z’ pattern.

Program: -

===============================================================================================

Program output: -

9|Pag
~ Vivek

10 | P a
~ Vivek
Program-11
Write a program that sort an array of integers in ascending order.

Program: -

===============================================================================================

Program output: -

11 | P a
~ Vivek
Program-12
Write a program to input two tuples and create a third list that
contains all the elements of the first followed by all elements.

Program: -

==================================================================================

Program output: -

12 | P a
~ Vivek
Program-13
Write a code to create a python dictionary. Add three number
and there corresponding names as input. Names are key and
phones are values. Then ask the user a name and print its
corresponding phones
Program: -

===============================================================================================

Program output: -

13 | P a
~ Vivek
Program-14
Given a dictionary with 5 student name and their names. Write a
program that print the dictionary contains in the ascending order of
marks.
Program: -

==================================================================================

Program output: -

14 | P a
~ Vivek
Program-15
Write a program with a function ChkOdd() that takes one argument
(a positive integer) and reports if the argument is odd or not

Program: -

===============================================================================================

Program output: -

15 | P a
~ Vivek
Program- 16
Write a void function that receives a 4-digit number and calculates
the sum of square of first 2-digit number ad last 2-digit number

Program: -

===============================================================================================

Program output: -

16 | P a
~ Vivek
Program-17
Write a function that takes one argument(positive number) and
reports if the argument is prime or not. Write a program that
invokes this function.

Program: -

===============================================================================================

Program output: -

17 | P a
~ Vivek
Program-18
Write a program that takes a character and returns True if it is a
vowel, false otherwise.

Program: -

===============================================================================================

Program output: -

18 | P a
~ Vivek
Program-19
Create modules to that should contain the following two
conversion: -
a} Celsius to Fahrenheit
module: -

b} Fahrenheit to Celsius
module: -

19 | P a
~ Vivek
Program-15
Write a program to modify the price of an item in the binary file
‘Item.dat’.

Program: -

20 | P a
~ Vivek

===============================================================================================

Program output: -
21 | P a
~ Vivek

22 | P a
~ Vivek

23 | P a
~ Vivek

24 | P a
~ Vivek
Program-16
Write a program that asks a new user about user-id and
password and then append it to the file ‘Security.txt’ provide the
given user does not exist in the file. If it does, then display error
message ‘User-id already exists’ and prompts the user to re-
enter the user- id. Also, make sure that the password is at least 8
characters long with at least a digit and a special character out of
‘$,%,@’ in it.

Program: -

25 | P a
~ Vivek
===============================================================================================

Program output: -

26 | P a
~ Vivek
Program-17
Write a program to create a binary file ‘Item.dat’ to store Items
details as per (itemno, name, category, price). Append some
records to the file.

Program: -

===============================================================================================

Program output: -

27 | P a
~ Vivek

28 | P a
~ Vivek
Program-29
Write a program to read a file ‘Item.csv’ and search for an item
whose itemno is obtained from the user, as the keyboard input.

File content: -

===============================================================================================

Program: -

===============================================================================================

Program output: -

29 | P a
~ Vivek
Program-30
Write a program to read from a file ‘Item.csv’ and create a file
‘highitems.csv’ containing only those item details form ‘Item.csv’
where price>250.
Program: -

===============================================================================================

Program output: -

30 | P a
~ Vivek
Program-20
Write a python program to get 10 items details(itemno, name, price,
category) from the user and create a csv file(ite.csv), but with a
delimiter character as pipe ‘|’.

Program: -

===============================================================================================

Program output: -

31 | P a
~ Vivek

32 | P a

You might also like