0% found this document useful (0 votes)
2 views28 pages

Computer Science Program File

The document is a program file created by Pratyush Mohanty for a Computer Science course, containing various programming exercises and their corresponding outputs. It includes a certificate of completion, an acknowledgment section, and a detailed index of programs ranging from checking even/odd numbers to generating patterns. The programs are designed to demonstrate skills in Python programming for various applications such as calculating discounts, grades, and bills.

Uploaded by

mpratyush401
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)
2 views28 pages

Computer Science Program File

The document is a program file created by Pratyush Mohanty for a Computer Science course, containing various programming exercises and their corresponding outputs. It includes a certificate of completion, an acknowledgment section, and a detailed index of programs ranging from checking even/odd numbers to generating patterns. The programs are designed to demonstrate skills in Python programming for various applications such as calculating discounts, grades, and bills.

Uploaded by

mpratyush401
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

Computer Science Program File

Pratyush
IX a| 23/06/2025
2025-26
ROLL NO. 24
[Link] Topic
INDEX Page
. No.

1 Certificate 3

2 Acknowledgement 4

3 Program to find whether a number is odd or even 5

4 Program to check whether a person is eligible to vote or not. 6

5 Program to find discount amount based on the sales amount 7

6 Program to accept the cost price of bike and display the road 8
tax

7 Program to print grade of a student 10

8 Program to print the electricity bill of a consumer 12

9 Program to calculate BMI and print the nutritional status 14

10 Program to enter money and find out denominations 15

1
CERTIFICATE
This is to certify that all the computer programs
written and included in this file have been
carefully completed and successfully performed
by Master Pratyush Mohanty, a student of
Ryan International School, Mayur Vihar,
studying in Class XI-A, during the academic year
2025–2026.
This record shows that he has worked with
interest and sincerity, practiced the given
programs regularly, and completed them with
good results. It also reflects his dedication, effort,
and understanding of the subject during the
course of the year.

…………………………
Teacher’s Signature

2
3
ACKNOWLEDGEMEN
T
I would like to express my greatest gratitude to the
people who helped and supported me throughout the
course of this program file. I am extremely thankful to
my teacher Ms. Nupur Gupta whose valuable
guidance and support resulted in the success of this
program file. I would also like to thank my parents and
friends who helped me from time to time. Lastly, I
would like to express my gratitude to the principal Ms.
Rajni for her constant motivation during this project.

Name: Pratyush Mohanty


Class: XI-A

4
Ques1. Write a program to check whether a number is
even or odd.
INPUT:

OUTPUT:

5
Ques2. Write a program to check whether a
person is eligible to vote or not.
INPUT:

OUTPUT:

Ques3. Write a program which accept Sales


Amount from user then calculate and print
discount amount per following criteria:
Sales Amount Discount
Less than 5000 5% of Sales Amount

6
5001 to 10000 7% of Sales Amount
More than 10000 10% of Sales Amount
INPUT:

OUTPUT:

Ques4. Write a program to accept the cost price


of a bike and display the road tax to be paid
according to the following criteria:
Cost Price Tax
>100000 15%

7
50001–100000 10%
≤50000 5%
INPUT:

OUTPUT:

8
Ques5. Write a program to print grade of a
student as per the input percentage using the
following criteria:
Percentage Grade
≥90 A

81–89 B
61–80 C
51–60 D

33–50 E
<33 F
INPUT:

OUTPUT:

9
10
Ques6: Write a Python script to ask the user to
enter three numbers and find the largest
among three numbers.
INPUT:

OUTPUT:

11
Ques7. Write a Python program to ask the user
to enter three numbers and find the smallest
among three numbers.
INPUT:

OUTPUT:

12
Ques8. Write a program to print the electricity
bill.
INPUT:

OUTPUT:

13
Ques9. Write a program to calculate BMI and
print the nutritional status.
INPUT:

OUTPUT:

14
Ques10. Write a program to enter any money
and find out number of denominations can be
used to make that money.
INPUT:

OUTPUT:

Ques11. Find factorial of a number using while loop

15
INPUT:

OUTPUT:

16
Ques12. Find and print all even numbers from 0 to n
using while loop.
INPUT:

OUTPUT:

17
Ques13. Find and print all odd numbers from 0 to n
using for loop.
INPUT:

OUTPUT:

18
Ques14. Print fibonacci series till n.
INPUT:

OUTPUT:

19
Ques 15. Find whether a number is a palindrome
number or not.
INPUT:

OUTPUT:

20
Ques 16. Find whether number is an Armstrong number
or not.
INPUT:

OUTPUT:

21
Ques 17. Find prime numbers from a range entered by
the user
INPUT:

OUTPUT:

22
Ques 18. Print multiples of 10 in reverse order from 100
to 10 using while loop and for loop.
INPUT:

OUTPUT:

23
Ques19. Print the following pattern:
1.1
22
333
4444
55555

INPUT:

OUTPUT:

24
Ques20. Print the following pattern:
1
12
123
1234
12345
INPUT:

OUTPUT:

Ques21. Print the following pattern:

25
11111
2222
333
44
5
INPUT:

OUTPUT:

26
Ques22. Print the following pattern
A
BB
CCC
DDDD
EEEEE
INPUT:

OUTPUT:

27

You might also like