0% found this document useful (0 votes)
21 views27 pages

Computer SC Project Format-Xi

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views27 pages

Computer SC Project Format-Xi

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 27

A COMPUTER SCIENCE PROJECT ON

“FLOW OF CONTROL”
(Let’s Enjoy the Programming World With Python)

For the partial fulfilment of the conditions laid down for Half
Yearly Computer Science Practical Examination of Std-XI for the
session 2024-25.

Under the guidance of Mrs. Geetanjali Hota


(HOD, Computer Science)
Submitted By :
ANURAG DAS
PRITAMJIT DAS
CLASS—XI (B)
ROLL NO. – 27/9925

DAV PUBLIC SCHOOL, POKHARIPUT


DECLARATION

We Anurag Das and Pritamjit Das,


Students of Class-XII ‘B’ of DAV Public
School, Pokhariput, hereby submit the
project entitled ‘Exam Management
System’ for the Half Yearly Computer
Science Practical for the Session 2024-
25.

This project consists of original work


done by me under the able guidance
and supervision of my Computer
Science Teacher.

Signature of the Students


CERTIFICATE
This is to certify that the project
entitled ‘Exam System Management’ is
an original piece of work done by
Anurag Das and Pritamjit Das of Class
XII-B is in accordance with topic allotted
to me.

This project is submitted towards the


partial fulfillment of the conditions laid
down for Half Yearly Computer Sc.
Practical Examination for the Session
2024-25 and embodies the work done
by them under my guidance and
supervision.

Signature of the Internal Signature of the


External
Signature of the Supervisor
ACKNOWLEDGEMENT

I would like to express profound sense of


gratitude to my guide Mrs.Geetanjali Hota,
our Computer Science Teacher for her
valuable guidance and suggestions during
preparation of our project work.

I am also grateful to our Principal Mr. Bipin


Kumar Sahoo,for his encouragement and
constant inspiration.

With great pleasure I also extend my


gratitude to my friends for their support and
help which enabled me to finish this piece of
work successfully.

Signature of the Students


TABLE OF CONTENTS
1)Fibonacci series
2)Sum of Even and Odd no.s in a given
range
3)Print star pattern
4)Print the pattern- A
BB
CCC
DDDD
5)Find the second largest no. among given
numbers
6)Print the series pattern:-
x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
7)Convert Temperature From Celsius To
Fahrenheit
8)To check whether the given number is
Palindrome or not
9)To print the factorial of a given number
10)To print the reverse of a given number
Fibonacci Series

n=int(input("Range= "))
a=0
b=1
print(a,b,end=' ')
for i in range(2,n):
c=a+b
print(c,end=' ')
a,b=b,c

Sum of odd and even no.s

s=s1=0
n=int(input("Range= "))
for i in range(1,n+1):
if i%2==0:
s=s+i
else:
s1=s1+i
print("sum of even no=",s)
print("sum of odd no=",s1)
Star pattern

n = int(input("No. of rows: "))


for i in range(n, 0, -2):
for j in range((n - i) // 2):
print(end=" ")
for k in range(0, i):
print("*", end="")
print()
String pattern

s=input("Enter a string")
l=len(s)
for i in range(l):
for j in range(i+1):
print(s[j],end=" ")
print()
Second Largest number
largest=0
second=0
while True:
a=int(input("Enter a number(quit is 0):
"))
if a==0:
break
else:
if a>largest:
second=largest
largest=a
elif a>second:
second=a
print(second,"is the second largest
number.")
x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n

import math
x=int(input("Enter base:"))
N=int(input("Enter Range:"))
sum=0
for i in range (1,N+1):
term=pow(x,i)/i
s=s+term
print("The sum =",s)
Conversion of Temp. from Farenheit To
Celcius

temp=float(input("Enter
temperature in fahrenheit:"))
celsius=(temp-32)*5/9
print("Temperature in
celsius:",celsius)
Palindrome Number

num = int(input("Enter a number: "))


temp = num
sum = 0
while num > 0:
rem = num % 10
sum = sum * 10 + rem
num = num // 10
if sum == temp:
print("The number is Palindrome")
else:
print("The number is not a Palindrome")
Factorial of a number

num=int(input("Enter the number:


"))
fact=1
c=num
while num>=1:
fact=fact*num
num=num-1
print("The factorial of",c,"is",fact)
Reverse of a number

num = int(input("Enter a number: "))


temp = num
rev_num = 0
while num > 0:
rem = num % 10
rev_num = rev_num * 10 + rem
num = num // 10
print("The reverse is: ", rev_num)
SOURCE CODE:
print("Welcome to our Presentation")
choice="Y"
while choice=='Y' or choice=='y':
print(""" 1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number""")

option=int(input("Pick your option:"))

#Fibbonacci Series
if option==1:
n=int(input("Range= "))
a=0
b=1
print(a,b,end=' ')
for i in range(2,n):
c=a+b
print(c,end=' ')
a,b=b,c

#Sum of odd and even no.s within a given range


elif option==2:
s=s1=0
n=int(input("Range= "))
for i in range(1,n+1):
if i%2==0:
s=s+i
else:
s1=s1+i
print("sum of even no=",s)
print("sum of odd no=",s1)

#Star Pattern
elif option==3:
n = int(input("No. of rows: "))
for i in range(n, 0, -2):
for j in range((n - i) // 2):
print(end=" ")
for k in range(0, i):
print("*", end="")
print()

#String Pattern
elif option==4:
s=input("Enter a string")
l=len(s)
for i in range(l):
for j in range(i+1):
print(s[j],end=" ")
print()

#Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
elif option==5:
import math
x=int(input("Enter base:"))
N=int(input("Enter Range:"))
sum=0
for i in range (1,N+1):
term=pow(x,i)/i
s=s+term
print("The sum =",s)

#Second Largest no.


elif option==6:
largest=0
second=0
while True:
a=int(input("Enter a number(quit is 0): "))
if a==0:
break
else:
if a>largest:
second=largest
largest=a
elif a>second:
second=a
print(second,"is the second largest number.")

#Conversion of Temp. from Farenheit To Celcius


elif option==7:
temp=float(input("Enter temperature in fahrenheit:"))
celsius=(temp-32)*5/9
print("Temperature in celsius:",celsius)

#Palindrome Number
elif option==8:
num = int(input("Enter a number: "))
temp = num
sum = 0
while num > 0:
rem = num % 10
sum = sum * 10 + rem
num = num // 10
if sum == temp:
print("The number is Palindrome")
else:
print("The number is not a Palindrome")

#Factorial of a number
elif option==9:
num=int(input("Enter the number: "))
fact=1
c=num
while num>=1:
fact=fact*num
num=num-1
print("The factorial of",c,"is",fact)

#Reverse of a number
elif option==10:
num = int(input("Enter a number: "))
temp = num
rev_num = 0
while num > 0:
rem = num % 10
rev_num = rev_num * 10 + rem
num = num // 10
print("The reverse is: ", rev_num)
choice_1=input("Do you want to continue further?- Y/N")
choice=choice_1
print()
print("Thank you for your Patience")
OUTPUT
Welcome to our Presentation
1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:1
Range= 5
0 1 1 2 3 Do you want to continue further?- Y/NY

1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:2
Range= 6
sum of even no= 12
sum of odd no= 9
Do you want to continue further?- Y/NY

1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:3
No. of rows: 7
*******
*****
***
*
Do you want to continue further?- Y/NY

1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:4
Enter a stringdavpublicschool
d
da
dav
davp
davpu
davpub
davpubl
davpubli
davpublic
davpublics
davpublicsc
davpublicsch
davpublicscho
davpublicschoo
davpublicschool
Do you want to continue further?- Y/NY

1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:5
Enter base:2
Enter Range:3
The sum = 6.666666666666666
Do you want to continue further?- Y/NY
1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:6
Enter a number(quit is 0): 2
Enter a number(quit is 0): 5
Enter a number(quit is 0): 48
Enter a number(quit is 0): 64
Enter a number(quit is 0): 0
48 is the second largest number.
Do you want to continue further?- Y/NY

1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:7
Enter temperature in fahrenheit:45
Temperature in celsius: 7.222222222222222
Do you want to continue further?- Y/NY

1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:8
Enter a number: 1221
The number is Palindrome
Do you want to continue further?- Y/NY
1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:9
Enter the number: 6
The factorial of 6 is 720
Do you want to continue further?- Y/NY

1)Fibbonacci
2)Sum of odd and even no.s within a given range
3)Star Pattern
4)String Pattern
5)Series=> x+(x²/2)+(x³/3)+(x⁴/4)+......xⁿ/n
6)Second Largest no.
7)Conversion of Temp. from Farenheit To Celcius
8)Palindrome Number
9)Factorial of a number
10)Reverse of a number
Pick your option:10
Enter a number: 159753
The reverse is: 357951
Do you want to continue further?- Y/NN

Thank you for your Patience


CONCLUSION
Thus, the submitted project was an interactive
program coded with the help of python to
demonstrate the simple and user friendly
platform of high level language, Python.

BIBLIOGRAPHY
 Computer Science with Python
-Sumita Arora
THANK YOU

You might also like