Ip Grade 11record-2023
Ip Grade 11record-2023
GRADE XI
PRACTICAL RECORD
2023-2024
1
SCHOLARS INDIAN SCHOOL
RAS AL KHAIMAH – UAE
CERTIFICATE
NAME : …………………………………….
CLASS : ……………………..
In SCHOLARS INDIAN SCHOOL Laboratory during the Academic Year 2023 – 2024 and
submitted for the practical examination held on ………………..
2
CONTENT
2. Write a program to discover the sale price of an item with a given cost and 7
discount (%).
3. Write a program to compute perimeter/circumference and area of shapes such 8
as triangle, rectangle, square, and circle
4. Write a program to compute Simple and Compound interest. 11
5. Write a program to calculate profit-loss for given Cost and Sell Price. 12
10. Write a program to discover the sum of squares of the first 100 natural 17
numbers
11. Write a program to print the initial ‘n’ multiples of an assigned numeral. 18
12. Write a program to count the number of vowels in the user-entered string. 19
13. Write a program to print the words starting with an alphabet in a user-entered 20
string.
14. Write a program to print the number of occurrences of a given alphabet in 21
each string
15. Construct a dictionary to store the names of states and their capitals. 22
16. Build a dictionary of students to store names and marks obtained in 5 subjects. 23
3
PROGRAM TERM II-DATABASE MANAGEMENT-SQL QUERIES PAGE
NO. NO.
1. Write SQL query to construct a database. 26
2. Write SQL query to make a student table with the student id, class, section, 26
gender, name, dob, and marks as attributes where the student id is the primary
key.
3. Write SQL query to put in the details of at least 10 students in the above table 28
5. Write SQL query to exhibit the studentid, Name, and Marks of those students 29
who are scoring marks more than 50.
6. Write SQL query to see the average of marks from the student table. 30
7. Write SQL query to discover the number of students, who are from section 30
‘A’.
8. Write SQL query to indicate the information to all the students, whose name 30
starts with ‘Sh’.
9. Write SQL query to show studentid, Name, DOB of those students who are 31
born between ‘2005- 01-01’ and ‘2005-12-31’.
10. Write SQL query to demonstrate studentid, Name, DOB, Marks, and Email 31
of those male students in ascending order of their names.
11. Write SQL query to show Rno, Gender, Name, DOB, Marks, and Email in 31
descending order of their marks.
12. Write SQL query to exhibit the distinct section available in the table. 32
4
PROGRAM-1: Write a program to see average and grade for given marks.
Code:
markOne = int(input())
markTwo = int(input())
markThree = int(input())
markFour = int(input())
markFive = int(input())
tot = markOne+markTwo+markThree+markFour+markFive
avg = tot/5
5
elif avg>=33 and avg<41:
else:
print("Invalid Input!")
Output:
100
90
80
100
100
Your Grade is B1
6
PROGRAM-2: Write a program to discover the sale price of an item with a given cost and
discount (%).
Aim: To discover the sale price of an item with a given cost and discount (%).
Code:
discount=price*dp/100
sp=price-discount
print("Discount: ",discount)
Output:
Enter Price : 45
Enter discount % : 10
Cost Price : 45.0
Discount: 4.5
Selling Price : 40.5
7
PROGRAM-3: Write a program to compute perimeter/circumference and area of shapes
such as triangle, rectangle, square, and circle.
Code:
import math
c=int(input("choose the required shape for which you want to find area and
if(c==1):
s=(a+b+c)/2
area_t=math.sqrt(s*(s-a)*(s-b)*(s-c))
peri_t=a+b+c
triangle:",round(peri_t,2))
elif(c==2):
area=a*b
peri=2*(a+b)
8
print("Area of the rectangle:",round(area,2),"\n","Perimeter of
rectangle:",round(peri,2))
elif(c==3):
area=a*a
peri=4*a
elif(c==4):
area=3.14*a*a
peri=2*3.14*a
else:
print("Invalid choice")
Output:
choose the required shape for which you want to find area and circumference,Press:
1 for triangle
2 for rectangle
3 for square
4 for circle
9
Area of the circle: 28.26
10
PROGRAM-4: Write a program to compute Simple and Compound interest
Code:
Output:
11
PROGRAM-5: Write a program to print multiples of 5.
Code:
For i in range(1,N+1):
Print(‘5 *’,i,”=”,5*i)
Output:
>>>
5*1=5
5*2=10
5*3=15
5*4=15
5*5=25
12
PROGRAM-6: Write a program to estimate EMI for Amount, Period, and Interest
Code:
r = R/(12*100)
emi = p * r * ((1+r)**n)/((1+r)**n - 1)
Output:
Enter principal amount: 10000
13
PROGRAM-7: Write a program to estimate tax – GST / Income Tax.
Code:
Gstamt=(GSTrate*Amount)/100
print("The tax amount applicable on the given price is: Rs.", Gstamt)
print("The tax amount payable (inclusive of all taxes) is found to be: Rs.", Totalamt)
Output:
>>>
The tax amount applicable on the given price is: Rs. 5.0
The tax amount payable (inclusive of all taxes) is found to be: Rs. 205.0
14
PROGRAM-8: Write a program to discover the largest and smallest numbers in a list
Code:
lst = []
for n in range(num):
lst.append(numbers)
print("Maximum element in the list is :", max(lst), "\n”,” Minimum element in the list is
:", min(lst))
Output:
Enter number 20
Enter number 24
Enter number 12
Enter number 23
Enter number 50
15
PROGRAM-9: Write a program to see the third largest/smallest number in a list.
Code:
lst = []
for n in range(num):
lst.append(numbers)
lst.sort()
if(len(lst)<3):
print("Cannot process the list, the length of list is less than 3")
else:
Output:
Enter number 2
Enter number 3
Enter number 4
Enter number 5
Enter number 1
Enter number 6
16
PROGRAM-10: Write a program to discover the sum of squares of the first 100 natural
numbers.
Aim: To extend the list, to append ,insert ,pop, remove, clear, reverse and sort an items to the
list.
Code:
sum=0
for i in range(1,101,1):
sum=sum+(i*i)
print(sum)
Output:
338350
17
PROGRAM-11: Write a Python program to print the initial ‘n’ multiples of an assigned
numeral
Aim: To write a program to print the initial ‘n’ multiples of an assigned numeral
Code:
Output:
Enter the number:5
1*5=5
2 * 5 = 10
3 * 5 = 15
4 * 5 = 20
5 * 5 = 25
6 * 5 = 30
7 * 5 = 35
8 * 5 = 40
9 * 5 = 45
10 * 5 = 50>>>
18
PROGRAM-12: Write a program to count the number of vowels in the user-entered string.
Code:
count=0
for i in str:
if(i.lower() in ['a','e','i','o','u']):
count=count+1
Output:
19
PROGRAM-13: write a program to print the words starting with an alphabet in a user-
entered string.
Code:
words=str.split(" ")
count=len(words)
for i in range(count):
str=words[i]
if(str[0]==c.lower() or str[0]==c.upper()):
print(str)
Output:
Hai,
how
20
PROGRAM-14: Write a program to print the number of occurrences of a given alphabet in
each string
Code:
Output:
Enter the input string:hello how are you
Enter the alphabet to be checked:o
The no: of occurence of character, o in the word ' hello ' is: 1
The no: of occurence of character, o in the word ' how ' is: 1
The no: of occurence of character, o in the word ' are ' is: 0
The no: of occurence of character, o in the word ' you ' is: 1
21
PROGRAM-15: Construct a dictionary to store the names of states and their capitals.
Aim: To create a dictionary to store the names of states and their capitals.
Code:
dict={}
for i in range(N):
dict[state]=cap
Output:
22
PROGRAM-16: Build a dictionary of students to store names and marks obtained in 5
subjects.
Aim: To build a dictionary of students to store names and marks obtained in 5 subjects.
Code:
dict={}
lis=[]
for i in range(N):
for j in range(5):
mark=float(input())
lis.append(mark)
print("******************************")
dict[name]=lis
lis=[]
Output:
23
Enter the name of the student:Arun
45
46
40
50
47
******************************
40
50
45
44
50
******************************
24
Enter the details of the student
40
45
46
47
50
******************************
{'Arun': [45.0, 46.0, 40.0, 50.0, 47.0], 'Vivek': [40.0, 50.0, 45.0, 44.0, 50.0], 'Rinu': [40.0,
45.0, 46.0, 47.0, 50.0]}
25
DATABASE MANAGEMENT-SQL QUERIES
use class11;
QUERY-2: Write SQL query to make a student table with the student id, class, section,
gender, name, dob, and marks as attributes where the student id is the primary key.
class char(2),
section char(1),
gender char(1),
name varchar(20),
dob date,
marks decimal(5,2));
26
desc student; OR
describe student
27
QUERY-3: Write SQL query to put in the details of at least 10 students in the above table
(1101,'XI','A','M','Aksh','2005/12/23',88.21),
(1102,'XI','B','F','Moksha','2005/03/24',77.90),
(1103,'XI','A','F','Archi','2006/04/21',76.20),
(1104,'XI','B','M','Bhavin','2005/09/15',68.23),
(1105,'XI','C','M','Kevin','2005/08/23',66.33),
(1106,'XI','C','F','Naadiya','2005/10/27',62.33),
(1107,'XI','D','M','Krish','2005/01/23',84.33),
(1108,'XI','D','M','Ayush','2005/04/23',55.33),
(1109,'XI','C','F','Shruti','2005/06/01',74.33),
(1110,'XI','D','F','Shivi','2005/10/19',72.30);
28
QUERY-4: Write SQL query to show the entire content of the table.
QUERY-5: Write SQL query to exhibit the Rno, Name, and Marks of those students who
are scoring marks more than 50.
29
QUERY-6: Write SQL query to see the average of marks from the student table
QUERY-7: Write SQL query to discover the number of students, who are from section ‘A’.
QUERY-8: Write SQL query to indicate the information to all the students, whose name
starts with ‘Sh’.
30
QUERY-9: Write SQL query to show studentid, Name, DOB of those students who are born
between ‘2005- 01-01’ and ‘2005-12-31’.
select studentid, name, dob from student where dob between '2005-01-01' and '2005-12-31';
QUERY-10: Write SQL query to demonstrate studentid, Name, DOB, Marks, and Email of
those male students in ascending order of their names.
QUERY-11: Write SQL query to show studentid, Gender, Name, DOB, Marks, and Email
in descending order of their marks
select studentid, gender, name, dob, marks, email from student order by marks desc;
31
QUERY-12: Write SQL query to exhibit the distinct section available in the table.
32