0% found this document useful (0 votes)
64 views23 pages

Computer Science Project File

Uploaded by

kaushalmaurya738
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)
64 views23 pages

Computer Science Project File

Uploaded by

kaushalmaurya738
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/ 23

Computer Science

practical File

KAMAL PUBLIC SR. SEC. SCHOOL


NAME : Kaushal Maurya
ROLL NO. : 16
CLASS. : 12
SECTION.: A
1. Write a program to accept a number and
display whether the number is a palindrome or no
Input:

Output:
2.write a python program to print Fibonacci series
up to a certain limit.
Input:

Output:
3.Write a python program to accept a number,
find out and display whether it is an Armstrong
number or not.

Input:

Output:
4.Write a python program to input ‘n’ name and
phone number to store it in a dictionary and print
the phone number of a particular name.

Input:

Output:
5.Write a python program to replace word ”Birds”
by another word ”Whales” in a file “POEM.txt”.

Input:

Output:
6.Write a program using dictionary and Text file to
store roman numbers and find their equivalents.

Input:

Output:
7.write a python program to take input for a
number and print its factorial using recursion

Input:

Output:
8.Write a python program to take input for 2
numbers and an operator (+, -, *, /). Based on the
operator calculate and print the result?
Input:

Output:
9.write a python program to display Fibonacci
sequence using Recursion?
Input:

Output:
10.Write a program in python to replace a
character by another character In a file
“POEM.txt”.
Input:

Output:
11.Python program to take input of a number
and print it's factorial using recursion

Input:

Output:
12.Write a python program to take input for
two numbers and a mathematical operator.
Based on the operator calculate and print
result.
Input:

Output:
13. Write a python code to linear search an
element in a array.

Input:

Output:
14. Write a program to demonstrate a simple
queue implementation with enqueue and
dequeue operations.
Input:

Output:
15. Write a python program on stack
implementation with Push, Pop and Display
operation
Input:

Output:
16.Write a python program to check whether the
entered word or string is palindrome or not

Input:

Output:
17.Write a python program for a simple calculator.
Input:

Output:
18. Write a python a program to check whether a
number is prime or not.
Input:

Output:
19.Write a function list change (arr) in python,
which accept a list of number and replace each
even number with 10 and multiply odd number
with 5.
Input:
Output:

20. Write a program to compute the Total salary of the employee


and also calculate the size of the binary file named "empfile.dat".
The file consists of the following fields: employee number,
employee name, basic salary, allowances)

Input:
Output:

You might also like