Siya
Siya
Class: XI Science
Roll No: 18
Index
S.no Title Pg.no
1 Program to check divisibility of a number with 7
another number
2 Program to read/input two numbers and an 8
arithmetic operator and display the computed result.
3 Program to read/input three numbers and print 9
them in ascending order.
4 Program to print whether a given character is an 10
uppercase or a lowercase character or a digit or any
other character.
5 Write a program to input showroom price and the 11
number of years the car is used
([1] for one year old, [2] for 2 years old and so
on). Calculate the depreciated value. Display the
original price of the car, depreciated value and the
amount to be paid.
6 Write a program to enter 3 numbers and find 12
maximum and minimum number among these
numbers.
7 An electronic shop has announced seasonal 13
discounts. Write a program to accept the
purchase amount and calculate discount as well as
net amount to be paid.
8 Write a program to accept three dimensions of a 14
triangle and find with given triangle dimensions
the triangle formation is possible or not.
9 Write a program ( ) to accept three 15
numbers and sort them in descending order using
nested if- else statements.
LOOPING OR REPETITION/ITERATIVE
STATEMENTS
1 1. to display Fibonacci series till N
terms. i.e. if the given value of N is 8 then
Fibonacci series will be 0 1 1 2 3 5 8 13
2. to accept a number and find sum of its
digit.Exp: 153=1+5+3=9
3 WAP to accept a number and find if it is a
prime number. (A number that can be divided
by 1 and itself)
4 to accept a number and find if it is a
Armstrong number. (A number whose sum of
the cubes of its digits is equal to the number.
5 to find factorial of a number Using
loop and program should not accept
negative number.
6 to input a number and check whether it is
a special number or not.[A number is said to be
special if sum of the factorials of its digits equals
that number. Exp: 145 is a special number]
7 Create Menu driven Program to generate
following number series: 2,5,10,17…….
0,3,8,15……. 1,12,123,1234……
8 Create Menu driven Program to find sum of
following series. a/1+a/2+a/3+a/4……a/10
(Input value of a) 1! +2! +3! + ..................
n! (1*1) + (2*2) + (3*3) + (4*4) +
(5*5) + … + (n*n)
1/2+1/3+1/4+……….1/10 x-x2/2! +x3/3!
-x4/4! +x5/5! -x6/6! (Input x).
9 Write programs to print some patterns using
nested for loop.
10 String manipulation programs
to display and count number of vowels,
consonants, uppercase and lowercase characters in
a string. 27
to input a string and determine whether it
is a palindrome or not 28
Write a Python program as per specifications
given below:
>repeatedly prompt for a sentence (string) or 'q' for quit
>upon input for a sentence "s", print the string produced
from s by converting each lower case letter to upper case
and each upper case letter to lower case. All other
characters are left unchanged
>Write a program to input a line of text and print the
biggest word (length wise) from it.
>Write a program to input a line of text and create a
new line of text where each word of input line is reversed
Activity 1
Q 1. Program to check divisibility of a number with
another number.
Activity 2
Q 2. Program to read/input three numbers and print them in
ascending order.
Activity 3
Q 3. Program to read/input three numbers and print them in
ascending order.
Activity 4
Q 4. Program to print whether a given character is an uppercase or
a lowercase character or a digit or any other character.
Activity 5
Q 5. In order to purchase an old car, the depreciated value can be
calculated as per the tariff given below:
Activity 6
Q 6. Write a program to enter 3 numbers and find maximum and
minimum number among these numbers
Activity 7
Q 7. An electronic shop has announced the following seasonal discounts
Activity 8
Q 8. Write a program to accept three dimensions of a triangle and find
with given triangle dimensions the triangle formation is possible or not.
Activity 9
Q 9. Write a program ( ) to accept three numbers and sort
them in descending order using nested if-else statements.