0% found this document useful (0 votes)
78 views18 pages

Computer Project File 2

This document contains a computer project file submitted by Rishi Bhadauriya to his teacher Gaurav sir. It includes a certificate signed by the teacher and examiner certifying that Rishi successfully completed the Python programming project. It also includes an acknowledgement and index listing 10 Python programs including programs to calculate math operations on input numbers, check gender from a name, convert distances between units, and find notes from an amount.

Uploaded by

Alka Bhadauriya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
78 views18 pages

Computer Project File 2

This document contains a computer project file submitted by Rishi Bhadauriya to his teacher Gaurav sir. It includes a certificate signed by the teacher and examiner certifying that Rishi successfully completed the Python programming project. It also includes an acknowledgement and index listing 10 Python programs including programs to calculate math operations on input numbers, check gender from a name, convert distances between units, and find notes from an amount.

Uploaded by

Alka Bhadauriya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 18

SESSION 2023-24

CLASS:-XII
COMPUTER PROJECT FILE

SUBMITTED TO:- gaurav sir


SUBMITTE BY:- rishi bhadauriya

CERTIFICATE
THIS IS TO CERTIFY THAT rishi bhadauriya
STUDENT OF CLASS xii-b HAS SUCCEFULLY
COMPLETED THE RESEARCH ON THE
BELOW MENTIONED COMPUTER PROJECT
UNDER THE GUIDANCE OF gaurav sir DURING
THE YEAR 2023-24.
SIGN OF EXTERNAL SIGN OF
TEACHER EXAMINAR

ACKNOWLEDGEMENT

I would like to express my special thanks of gratitude to


my teacher Gaurav sir who gave me the opportunity to do
this wonderful project of computer science on “PYTHON”
who also helped me in completing my project I came to
know about so many new things I am really thankful to
them secondly I would like to thank my parents and
friends who helped me a lot in finalizing this project
within the limited time frame

Rishi Bhadauriya
XII SCIENCE

Index
1.WAP TO INPUT 2 NUMBERS AND INPUT AN OPERATOR(+,-,*,/,%,//)
AND DISPLAY ANSWERS ACCORDING TO OPERATOR.
2.WAP TO INPUT A NAME AND CHECK IT IS MALEOR FEMALE.
3.WAP TO DISPLAY A DISTANCE IN METERS FROM YOUR HOME TO
SCHOOL.
4.WAP TO INPUT YOUR HOUSE ADRESSM AND COUNT
ALPHABET,DIGIT ,SYMBO LAND LENGTH.
5.WAP TO PRINT ALL PRIME NUMBERS BETWEEN 1 TO 1000.
6.WAP TO PRINT ALL ARMSTRONG NUMBERS BETWEEN 1 TO 1000.
7.WAP TO INPUT THE NUMBER OF DAYS AND FIND YEARS
MONTHS .WEEK AND REMAINIG DAYS..
8.WAP TO INPUT AN AMOUNT AND FIND TOTAL NOTES OF
2000,500,200,100,50,20,10,5,2 AND 1.
9.WAP TO INPUT AN AMOUNT IN INDIN CURRENCY AND CONVERT IT
INTO (CURRENCY CONVERTOR) IN DOLLAR AND IN DINAR.
10.WAP TO INPUT 20 STUDENT’S DATA(ROLL NO.,PER)OF CLASS 12 IN A
DICTIONARY AND FIND THE TOPPER .

• WAP TO INPUT 2 NUMBERS AND INPUT AN OPERATOR(+,-,*,/,


%,//) AND DISPLAY ANSWERS ACCORDING TO OPERATOR.

a=int(input('enter the number:'))


b=int(input('enter the number:'))
c=input('enter the operation that you want to do like
(+,-,*,/,%,//):')
if c=='+':
print(a+b)
elif c=='-':
print(a-b)
elif c=='*':
print(a*b)
elif c=='/':
print(a/b)
elif c=='%':
print(a%b)
elif c=='//':
print(a//b)
OUTPUT

• WAP TO INPUT A NAME AND CHECK IT IS MALE FOR FEMALE.

name=input('enter the name:')


b=name.lower()
if b.endswith(('a','e','i','o','u')):
print('gender=female')
else:
print('gender=male')'''

'''a=float(input('enter your home distace in kilometers:'))


b=a*1000
print('your home distance in meters is:',b)

OUTPUT
3. WAP TO DISPLAY A DISTANCE IN METERS FROM YOUR HOME TO
SCHOOL.

a=float(input('enter your home distace in kilometers:'))


b=a*1000
print('your home distance in meters is:',b)
OUTPUT

4. WAP TO INPUT YOUR HOUSE ADRESSM AND COUNT


ALPHABET,DIGIT ,SYMBO LAND LENGTH.

a=input('enter your house house address:')


s1=0
s2=0
s3=0
for i in a:
if i.isalpha():
s1=s1+1
elif i.isdigit():
s2=s2+1
else:
s3=s3+1
print('number of alphabets:',s1)
print('number of digits:',s2)
print('number of symbols:',s3)

OUTPUT
5. WAP TO PRINT ALL PRIME NUMBERS BETWEEN 1 TO 1000.

for a in range(1,1001):
if a>1:
for i in range(2,a):
if (a % i) == 0:
break
else:
print(a,'is a prime number')
OUTPUT

6. WAP TO PRINT ALL ARMSTRONG NUMBERS BETWEEN 1 TO 1000.

a=1
b=1000
for num in range(a,b+1):
sum=0
temp=num
while temp>0:
digit=temp%10
sum+=digit**3
temp//=10
if num==sum:
print(num)

OUTPUT
7. WAP TO INPUT THE NUMBER OF DAYS AND FIND YEARS
MONTHS .WEEK AND REMAINIG DAYS..

a=int(input('enter the number the days:'))


b=a//365
c=(a%365)//30
d=((a%365)%30)//7
e=((a%365)%30)%7
print('years:',b)
print('months:',c)
print('weeks:',d)
print('remaining days:',e)

OUTPUT
8. WAP TO INPUT AN AMOUNT AND FIND TOTAL NOTES OF
2000,500,200,100,50,20,10,5,2 AND 1.

a=int(input("enter the money:"))


n=a

while n !=0:
if a>=2000:
print("no.of 2000 notes:",a//2000)
a=a%2000
elif a>=500:
print("no.of 500 notes:",a//500)
a=a%500
elif a>=200:
print("no.of 200 notes:",a//200)
a=a%200
elif a>=100:
print("no.of 100 notes:",a//100)
a=a%100
elif a>=50:
print("no.of 50 notes:",a//50)
a=a%50
elif a>=20:
print("no.of 20 notes:",a//20)
a=a%20
elif a>=10:
print("no.of 10 notes:",a//10)
a=a%10
elif a>=5:
print("no.of 5 notes:",a//5)
a=a%5
elif a>=2:
print("no.of 2 notes:",a//2)
a=a%2
elif a>=1:
print("no.of 1 notes:",a//1)
a=a%1
OUTPUT

9. WAP TO INPUT AN AMOUNT IN INDIN CURRENCY AND CONVERT IT


INTO (CURRENCY CONVERTOR) IN DOLLAR AND IN DINAR.

a=int(input('enter the amount in indian rupees:'))


b=0.014
c=0.0042
d=a*b
e=a*c
print('amount in dollars(USD):',d)
print('amount in dinar (BHD):',e)
OUTPUT

10. WAP TO INPUT 20 STUDENT’S DATA(ROLL NO.,PER)OF CLASS 12 IN A


DICTIONARY AND FIND THE TOPPER .
student_data={}
for i in range(1,21):
roll_no = input('enter roll number for students {}:'.format(i))
percentage = float(input('enter the percentage for students
{}:'.format(i)))
student_data[roll_no] = percentage
max_percentage=0.0
topper = None
for roll_no,percentage in student_data.items():
if percentage>max_percentage:
max_percentage=percentage
topper = roll_no
print('the topper is student with roll no.:',topper)
print('percentage:',student_data[topper])

OUTPUT

You might also like