You are on page 1of 3

COMPUTER SCIENCE

PRACTICAL FILE
MADE BY- ASHMEEN KAUR (11-A)
INDEX:
PROGRA PROGRA
M TYPE
M
NO.
Simple
Programs

1
2

4
5
6

Ternary
Operator

If-Else
Statements

10

11

12

13

TOPIC

PAGE
NO.

Program to perform all arithmetic


functions on two numbers
Program to input dimensions of a
rectangle and display its area and
perimeter
Program to convert total no. of
days into year, month, week and
days.
Program to enter 2 nos and
display original and swapped no.
Program to swap two nos without
declaring the 3rd integer
Program to enter the radius of a
circle and display its diameter,
area and circumference.
Program to display data value and
address of memory location of a
variable.
Program to display max and min of
any 3 given nos using ternary
operator.
Program to display whether a
person is illegible for voting in
India or not.
Program to enter a no. and display
whether it is an even no. or an odd
no.
Program to display max and min of
any 3 given nos using if-else
statement.
Program to display roots of a
quadratic equation along with the
nature of roots.
Program to display whether an
entered char is digit, uppercase

1
2

4
5
6

9-10

11

12

13-14

15

14

15
Switch
Case
Programs
Switch
Case
Programs

16

17

18
19
For loop
programs

20

21
22
23
24
25
26
27
Do while
loop
programs

28

32
Nested
loops

29

30
31
33

alphabet, lowercase alphabet or


some other character.
Program to display whether a no.
is +ve or ve and if +ve whether
odd or even.
Program to check whether the
given date is valid or not.
Program to display stream
according to section.

16

17
18

Program to enter two nos and


perform an arithmetic function on
them.
Program to display whether a date
is valid or not using switch case.
Program to display day according
to day no.
Program to display uppercase,
lowercase alphabets and digits
along with their ascii code.
Program to display multiplication
table of a no.
Program to find sum, max, min
and average of entered nos.
Program to display factorial of a
given no.
Program to calculate power of a
no.
Program to display factors of a
given no.
Program to display whether a no.
is a perfect no. or not.
Program to display Fibonacci
series.
Program to display sum, no and
reverse of the entered digits.

20-21

Program to display lcm and hcf of


2 numbers.
Program to display first n prime
numbers.

37

Program to accept a Palindrome


no.
Program to accept an
Armstrong no.
Program to accept a valid date
using switch case

35

22-23
24
25

26
27-28
28
29
30
31
32
33

34

36
38-39

34

Program to solve 1!+2!+3!....

40

35

Program to solve
1^1+2^2+3^3+..

41

You might also like