You are on page 1of 25

SHIRIDI SAI PUBLICSCHOOL

COMPUTER SCIENCE

PROJECT FILE

SUMBITTED TO: SCHOLAR:

RUCHIKA MA’AM MRIDUL CHAUDHARY

XI-A
Index

No. Name Of Practical Date Pg no. Sign

1. WAP to accepts two integers and print their sum.

2. WAP that accepts radius of a circle and prints it’s area.

WAP that inputs a student’s marks in three subjects (out of 100)

3. and prints the percentage marks.

4. WAP to compute area of square and triangle.

5. WAP to compute simple interest.

WAP to read two numbers and prints their quotient and

6. reminder.

7. WAP to find whether a given number is even or odd.

8. WAP to find largest among three integers.

9. WAP to find lowest among three integers.

WAP to print roots of a quadratic equation ax2+bx+c=0 (where

10. a≠0)

Program to perform arithmetic calculation using switch. This

program inputs two operands and an operator than displays the

11. calculated result.

12. Program to print first n Natural numbers and their sum.

13. Program to calculate factorial of an integer using while loop.

Program to check whether the given number is palindrome or

14. not.

15. Write a program to print table of a given number.

16. Write a program to print Fibonacci series i.e. 0 1 1 2 3 5 8.......

Write a program to print following pattern on screen

17. *
**

***

****

Program to add the odd numbers up to(and including) a given

18. value N and print the result.

Compute the greatest common divisor and the least common

19. multiple of two integers.

20. Given two integers x and n ,compute x rest to power n.

Test if a number is equal to the sum of cubes of it’s digits . find

21. the smallest and largest such numbers.


PRACTICAL -1

Q- Write a program to accepts two integers and print their sum.

CODE:

OUTPUT:
PRACTICAL -2

Q- Write a program that accepts radius of a circle and prints it’s area.

CODE:

OUTPUT:
PRACTICAL -3

Q-Write a program that inputs a student’s marks in three subjects (out of 100)

and prints the percentage marks.

CODE:

OUTPUT:
PRACTICAL -4
Q- Write a program to compute area of square and triangle

CODE:

OUTPUT:
PRACTICAL -5
. Q- Write a program to compute simple interest.

CODE:

OUTPUT:

.
PRACTICAL -6

Q- Write a program to read two numbers and prints their quotient and reminder.

CODE:

OUTPUT:
PRACTICAL -7

Q- Write a program to find whether a given number is even or odd.

CODE:

OUTPUT:
PRACTICAL -8

Q- Write a program to find largest among three integers.

CODE:

OUTPUT:
PRACTICAL -9

Q- Write a program to find lowest among three integers.

CODE:

OUTPUT:
PRACTICAL -10

Q- Write a program to print roots of a quadratic equation ax2+bx+c=0 (where a≠0).

CODE:

OUTPUT:
PRACTICAL -11

Q- Program to perform arithmetic calculation using switch. This program inputs two

operands and an operator than displays the calculated result.

CODE:

OUTPUT:
PRACTICAL -12

Q- Program to print first n Natural numbers and their sum.

CODE:

OUTPUT:
PRACTICAL -13

Q- Program to calculate factorial of an integer using while loop.

CODE:

OUTPUT:
PRACTICAL -14

Q- Program to check whether the given number is palindrome or not.

CODE:

OUTPUT:
PRACTICAL -15

Q-Write a program to print table of a given number.

CODE:

OUTPUT:
PRACTICAL -16

Q- Write a program to print Fibonacci series i.e. 0 1 1 2 3 5 8.......

CODE:

OUTPUT:
PRACTICAL -17

Q- Write a program to print following pattern on screen

**

***

****

CODE:

OUTPUT:
PRACTICAL -18
Q-Program to add the odd numbers up to(and including) a given value N and print the
result.
CODE:

OUTPUT:
PRACTICAL -19

Q- Compute the greatest common divisor and the least common multiple of two

integers.

CODE:

OUTPUT:
PRACTICAL -20

Q- Given two integers x and n ,compute x rest to power n.

CODE:

OUTPUT:
PRACTICAL -21

Q- Test if a number is equal to the sum of cubes of it’s digits . find the smallest and largest

such numbers.

CODE:

OUTPUT:

You might also like