Professional Documents
Culture Documents
1 Write a program to input principle amount and time. If time is more than 10
years, calculate the simple interest with the rate 9%. Otherwise calculate
it with the rate 12%. Display principle amount, rate of interest, time and
simple interest.
2 Write a program to input monthly salary of an employee and calculate HRA as
10% of salary is salary is less than 5000. HRA is 12% of salary if the salary
is 5000 and above and less than 10000. HRA is 15% of salary if salary is
10000 and above. Display Salary, Hra and netpay where netpay is salary +Hra.
5 Write a program to input three angles of a triangle. If the three inputs are
valid, then identify the type of triangle(Equilateral, Isosceles, Scalene
and Right-angle). If the input in wrong print error message.
6 Write a program to input two meter readings current month and previous month,
calculate consumed units and amount based on following conditions. Consumed
(cons)=cm-pm. If consumed reading is less than or equal to 50 the amount is
0. Next 100 units .40 paise per unit, next 150 units .60 paise per unit and
for the rest .90 paise per unit.
7 Write a program to input a character and check the character is in uppercase
or lowercase or special character or a digit.
8 Write a program to input the radius of a circle and calculate either AREA or
PEREMETER of a circle based on user’s choice.
10 The program accepts name, marks and print the details along with the result.
name=input("Enter the name : ")
marks=float(input("Enter Marks : "))
if marks>=33:
print("Name : ",name)
print("Mark : ",marks)
print("Result : Pass")
else:
print("Name : ",name)
print("Mark : ",marks)
print("Result : Fail")
Reduce the statements.
c) Sum,n=0,6 d) a=4
for I in range(2,n): b=0
if n % I ==0: for c in range (a,a*a,a):
Sum+=I b+=c
print(Sum) print(a,b,c)
17 Write a program to print all the even numbers between given two numbers.
18 Write a program to print the first ‘n’ MERSENNE numbers (2i – 1) where i
varies from 1 to ‘n’. (1 3 7 15 31 63 . . . .)
2
THE INDIAN COMMUNITY SCHOOL, KUWAIT
COMPUTER SCIENCE – SQP ( 1 TERM ) 2022
19 Write a program to input an integer number and calculate the product of the
factors of the given number except 1 and same number.
22 Write a program to input ‘n’ numbers and find the biggest no from the input.
n= 5 ( 45 , 65 , 36 , 75 , 25) big =75
24 Write a program to print all the prime number between two numbers.