Hướng dẫn sql queries for class 12 practical file python - truy vấn sql cho tập tin thực tế lớp 12 python

Xem trước

Tập tin dự án khoa học máy tính lớp 12 - Quản lý dữ liệu của sinh viên

Tập tin dự án khoa học máy tính lớp 12 - Quản lý dữ liệu thư viện

Chương trình Python

1. Lập trình để thêm hai số.

x = int(input('Enter integer value:'))
print('Value entered:', x)
print('Type:', type(x))

2. Chương trình tìm kiếm sự quan tâm đơn giản.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)

3. Lập trình để kiểm tra xem một số chẵn hay lẻ.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")

4. Chương trình kiểm tra xem một số có chia hết cho 2 hoặc 3 bằng cách sử dụng lồng nhau nếu.

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")

5. Chương trình dựa trên menu để tìm tổng, trừ, nhân và phân chia các giá trị.

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")

6. Chương trình in kết quả tùy thuộc vào tỷ lệ phần trăm.

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");

7. Chương trình tìm tổng số số chẵn từ 1 đến 7.

sum=0
for num in range(8):
    if num%2==0:
        sum=sum+num
print("Sum of even values=",sum)

8. Chương trình để tìm giai thừa của một số.

n=eval(input("Enter a number="))
i=1
f=1
while i<=n:
    f=f*i #1*2*3*4*5
    i=i+1
print("Factorial of",n,"=",f)

9. Chương trình để in bảng của bất kỳ số nào.

n=eval(input("Enter a number whose table you want="))
i=1
while i<=10:
    print(n,"X",i,"=",n*i)
    i=i+1

10. Chương trình in mẫu sau.

*
**
***
****
*****

for i in range(1,6):
    print()
    for j in range(1,i+1):
        print ('*',end="")

11. Chương trình sắp xếp các giá trị trong một danh sách.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
0

12. Chương trình tìm giá trị tối thiểu trong danh sách.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
1

13. Chương trình kiểm tra xem giá trị có tồn tại trong từ điển không

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
2

14. Chương trình tìm kiếm lớn nhất trong số hai số sử dụng hàm do người dùng xác định.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
3

15. Chương trình tìm tổng của hai số bằng hàm do người dùng xác định với các tham số.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
4

16. Chương trình tìm kiếm sự quan tâm đơn giản bằng cách sử dụng hàm do người dùng xác định với các tham số và với giá trị trả về.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
5

17. Lập trình để vượt qua danh sách như đối số chức năng và sửa đổi nó.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
6

18. Chương trình sử dụng các đối số mặc định trong một hàm.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
7

19. Chương trình viết rollno, tên và nhãn hiệu của một học sinh trong một tệp dữ liệu Marks.dat.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
8

20. Chương trình để đọc và hiển thị nội dung của nhãn hiệu.dat.

p = float(input('Enter principle'))
r = float(input('Enter rate'))
t = float(input('Enter time'))
i=p*r*t/100
print("Interest=",i)
9

21. Lập trình để đọc và hiển thị các dòng đó từ tệp bắt đầu bằng bảng chữ cái ‘t.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
0

22. Lập trình để đọc và hiển thị các dòng đó từ tệp kết thúc bằng bảng chữ cái.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
1

23. Chương trình để đếm số lượng từ trong dữ liệu dữ liệu dữ liệu.txt.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
2

24. Chương trình để đếm số lượng ký tự trong dữ liệu dữ liệu dữ liệu.txt.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
3

25. Chương trình ghi dữ liệu trong tệp CSV Student.csv.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
4

26. Chương trình để đọc và hiển thị dữ liệu từ tệp CSV Student.csv.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
5

Truy vấn SQL

SQL 1

Hướng dẫn sql queries for class 12 practical file python - truy vấn sql cho tập tin thực tế lớp 12 python

(i) & nbsp; Hiển thị công ty di động, & NBSP; Mobile & NBSP; Tên && nbsp; Giá trong & nbsp; thứ tự giảm dần của

Ngày sản xuất của họ.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
6

(ii) & nbsp; Liệt kê các chi tiết của thiết bị di động có tên bắt đầu bằng cách S S S.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
7

(iii) & nbsp; Hiển thị nhà cung cấp di động & số lượng của tất cả các điện thoại di động ngoại trừ & nbsp;

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
8

(iv) & nbsp; Để hiển thị tên của công ty di động có giá từ 3000 đến 5000.

a=float(input('Enter a number'))
if a%2==0:
    print(a,"is even")  
else:
    print(a,"is odd")
9

** Tìm đầu ra của các truy vấn sau

(v) & nbsp; Chọn M_ID, Sum (M_QTY) từ Nhóm MobileStock của M_ID;

MB004450
MB003400
MB003300
MB003200

(vi) & nbsp; Chọn tối đa (m_mf_date), min (m_mf_date) từ MobileMaster;

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
0

(vii) & nbsp; Chọn & NBSP; M1.m_id, m1.m_name, m2.m_qty, m2.m_supplier từ MobileMaster M1, Mobilestock M2 trong đó m1.m_id = m2.m_id và m2.m_qty> = 300;MobileMaster M1, MobileStock M2 WHERE M1.M_Id=M2.M_Id AND M2.M_Qty>=300;

MB004MB003450 (vi) & nbsp; Chọn tối đa (m_mf_date), min (m_mf_date) từ MobileMaster;
(vii) & nbsp; Chọn & NBSP; M1.m_id, m1.m_name, m2.m_qty, m2.m_supplier từ MobileMaster M1, Mobilestock M2 trong đó m1.m_id = m2.m_id và m2.m_qty> = 300;Unite3300 New_vision

MB001

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
1

ngân hà

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
2

Cửa hàng di động cổ điểnHiredate.

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
3

(viii) & nbsp; Chọn AVG (M_Price) từ MobileMaster;month of December 2001.

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
4

SQL 2TRAINER and COURSE of all those courses whose FEES is less than or equal to 10000.

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
5

tôi. Hiển thị tên huấn luyện viên, thành phố và tiền lương theo thứ tự giảm dần của họ.

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
6

** Tìm đầu ra của các truy vấn sau

(v) & nbsp; Chọn M_ID, Sum (M_QTY) từ Nhóm MobileStock của M_ID;IN(‘DELHI’, ‘MUMBAI’);

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
7

MB004

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
8

MB003TID HAVING COUNT(*)>1;

Ans.

(vi) & nbsp; Chọn tối đa (m_mf_date), min (m_mf_date) từ MobileMaster;

(vii) & nbsp; Chọn & NBSP; M1.m_id, m1.m_name, m2.m_qty, m2.m_supplier từ MobileMaster M1, Mobilestock M2 trong đó m1.m_id = m2.m_id và m2.m_qty> = 300;STARTDATE< ‘2018-09-15’;

Ans.

Unite3

New_vision

Hướng dẫn sql queries for class 12 practical file python - truy vấn sql cho tập tin thực tế lớp 12 python

MB001

num=float(input('Enter a number'))
if num%2==0:
    if num%3==0:
        print ("Divisible by 3 and 2")
    else:
        print ("divisible by 2 not divisible by 3")
else:
    if num%3==0:
        print ("divisible by 3 not divisible by 2")
    else:
        print  ("not Divisible by 2 not divisible by 3")
9

ngân hà

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
0

Cửa hàng di động cổ điển

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
1

(viii) & nbsp; Chọn AVG (M_Price) từ MobileMaster;courses.

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
2

SQL 2

tôi. Hiển thị tên huấn luyện viên, thành phố và tiền lương theo thứ tự giảm dần của họ.

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
3

ii. Để hiển thị tname và thành phố của huấn luyện viên đã gia nhập viện vào tháng 12 năm 2001.

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
4

iii. Để hiển thị tname, được thuê, cname, startDate từ huấn luyện viên bảng và khóa học của tất cả các khóa học có phí thấp hơn hoặc bằng 10000.

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
5

iv. Để hiển thị số lượng huấn luyện viên từ mỗi thành phố.

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
6

v. Chọn tid, tname, từ huấn luyện viên nơi thành phố không ở (‘delhi,‘ mumbai,);

Hướng dẫn sql queries for class 12 practical file python - truy vấn sql cho tập tin thực tế lớp 12 python

vi. Chọn TID khác biệt từ khóa học;

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
7

vii. Chọn TID, Đếm (*), tối thiểu (phí) từ nhóm khóa học bằng cách TID có số lượng (*)> 1;

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
8

iii. Để hiển thị tổng số lượng trong kho của đồng hồ loại unisex.

print("1. Sum of two numbers")
print("2. Subtaction of two numbers")
print("3. Multiplication of two numbers")
print("4. Division of two numbers")
choice=int(input('Enter your choice'))
if choice==1 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a+b
    print("Sum=",c)
elif choice==2 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a-b
    print("Subtraction=",c)
elif choice==3 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a*b
    print("Multiplication=",c)
elif choice==4 :
    a=int(input('Enter first number'))
    b=int(input('Enter second number'))
    c=a/b
    print("Division=",c)
else :
    print("Wrong choice")
9

iv. Để hiển thị tên đồng hồ và số lượng của họ được bán trong quý đầu tiên.

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
0

v. Chọn tối đa (Giá), Min (Qty_Store) từ đồng hồ;

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
1

vi. chọn quý, tổng (qty_sold) từ nhóm bán hàng theo quý;

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
2

vii. & nbsp; Chọn Watch_Name, Giá, Loại từ Đồng hồ W, Bán hàng trong đó W.WatchID! = S.WatchID;

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
3

viii. & nbsp; Chọn Watch_Name, Qty_Store, Sum (Qty_Sold), Qty_Store-SUM (QTY_SOLD)

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
4

SQL 5

Hướng dẫn sql queries for class 12 practical file python - truy vấn sql cho tập tin thực tế lớp 12 python

(i) & nbsp; Để hiển thị các hồ sơ từ sinh viên bảng theo thứ tự bảng chữ cái theo tên của học sinh. & Nbsp; & nbsp;

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
5

(ii) & nbsp; Để hiển thị lớp học, DOB và City có điểm số từ 450 đến 551.

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
6

(iii) & nbsp; Để hiển thị tên, lớp và tổng số học sinh đã bảo đảm hơn 450 điểm, lớp học khôn ngoan

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
7

(iv) & nbsp; Để tăng nhãn hiệu của tất cả các sinh viên & NBSP; bởi 20 người có lớp là "XII

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
8

** Tìm đầu ra của các truy vấn sau.

(v) & nbsp; Chọn Đếm (*), Thành phố từ nhóm sinh viên theo thành phố có số lượng (*)> 1;

a=int(input('Enter your percentage'))
eligible= a>=33   
compartment = a>=20 and a<33
fail=a<20
if eligible :
    print("Pass");   
elif compartment :
    print("compartment");   
elif fail:
    print("Fail");
9

(vi) & nbsp; Chọn MAX (DOB), Min (DOB) từ sinh viên;

sum=0
for num in range(8):
    if num%2==0:
        sum=sum+num
print("Sum of even values=",sum)
0

(iii) & nbsp; Chọn tên, giới tính từ sinh viên nơi City = xông Delhi,;

sum=0
for num in range(8):
    if num%2==0:
        sum=sum+num
print("Sum of even values=",sum)
1

Tập tin dự án khoa học máy tính lớp 12 - Quản lý dữ liệu của sinh viên

Tập tin dự án khoa học máy tính lớp 12 - Quản lý dữ liệu thư viện

Thẻ bài học: Tập tin thực tế khoa học máy tính lớp 12, Bảng SQL cho Tập tin thực tế Khoa học Máy tính XII, Tập tin thực tế Khoa học Máy tính XII, Khoa học máy tính XII
Quay lại: CBSE Lớp 12 Ghi chú Khoa học Máy tính

Bạn đã đăng ký thành công.

Có một lỗi trong khi cố gắng gửi yêu cầu của bạn. Vui lòng thử lại.

Đăng ký để cập nhật mới nhất