XI CS Practical Journal-Final

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

PODDAR BRIO INTERNATIONAL SENIOR SECONDARY SCHOOL

Badlapur
Sub- COMPUTER SCIENCE (083)

Grade-XI CBSE(Sci & Com) Practical File

INDEX
S.no Title Page no. Date
1 Addition of two integers. 18/08/23
2 Percentage calculation 25/08/23
3 Calculating Simple Interest 01/09/23
4 Odd or Even number 08/09/23
5 Largest and Smallest integer 15/09/23
6 Leap Year 18/09/23
7 Multiplication table 06/10/23
8 Pattern using Nested loop 12/10/23
9 Index of a string 20/10/23
10 Case changing in string 07/11/23
11 Login with Dictionary 08/12/23
12 Random OTP generator 15/12/23
13 Smallest/ Largest number in a list 20/12/23
14 Palindrome string 05/01/24
15 Menu driven program 18/01/24

XI_CS_PF_2023-24 Grade 11 Page 1 of 20


On Right page
Practical no 1:

Write a program to accepts two integers and print their sum.


Code:

On Left page: Stick output window as following image

Output :

XI_CS_PF_2023-24 Grade 11 Page 2 of 20


On Right page
Practical no 2:

Write a program that inputs a student’s marks in three subjects (out of 100) and
prints the percentage of marks obtained by the student.
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 3 of 20


On Right page
Practical no 3:

Write a program to compute simple interest when the user enters the Principal, Rate
and Time
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 4 of 20


On Right page
Practical no 4:

Write a program to find whether a given number is even or odd.


Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 5 of 20


On Right page
Practical no 5:

Write a program to find the largest and smallest among the three integers
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 6 of 20


On Right page
Practical no 6:

Write a program to check whether the year is leap year or not.


Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 7 of 20


On Right page
Practical no 7:

Write a program to obtain a number from the user and print its multiplication table.
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 8 of 20


On Right page
Practical no 8:

Write a program to generate following pattern using nested loop.


a) Pattern 1
*
**
***
****
*****
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 9 of 20


On Right page

Write a program to generate following pattern using nested loop.


b) Pattern 2
11111
2222
333
22
1
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 10 of 20


On Right page

Write a program to generate following pattern using nested loop.


c) Pattern 3
ABCDE
ABCD
ABC
AB
A
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 11 of 20


On Right page
Practical no 9:

Write a program that prints the index of every vowel in the string taken from user.
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 12 of 20


On Right page
Practical no 10:

Write a program to convert lowercase alphabet into uppercase and vice versa.
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 13 of 20


On Right page

Practical no 11:

Write a program that uses a dictionary which contains ten usernames and their
passwords. Display the appropriate message on correct login or wrong password.
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 14 of 20


On Right page

Practical no 12:

Write a program to generate 6 digit random secure OTP for a user.


Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 15 of 20


On Right page

Practical no 13:

Write a program to find the largest and smallest number in a list taken from user.
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 16 of 20


On Right page

Practical no 14:

Write a program to check whether string taken from user is palindrome or not
Code:

On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 17 of 20


On Right page

Practical no 15:
Write a menu-driven program to perform following operations:

1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit

Code:

XI_CS_PF_2023-24 Grade 11 Page 18 of 20


On Left page: Stick output window

Output:

XI_CS_PF_2023-24 Grade 11 Page 19 of 20


XI_CS_PF_2023-24 Grade 11 Page 20 of 20

You might also like