11 Ip List of Programs For Practical File
11 Ip List of Programs For Practical File
CLASS – 11
SUBJECT – Informatics Practices
S. PROGRAMS
NO
2) Write a program that accepts base and height and calculate the area of triangle.
5) Write a program to read two numbers and prints their quotient and reminder.
8) Write a program that reads the number n and print the value of n², n³ and n⁴.
9) Write a program to accept the marks of five subjects and calculate the average marks.
10) Write a program to accept the height in cm and convert it into feet and inches.
11) Write a program that accepts two numbers and check if the first number is fully divisible by
second number or not.
12) Write a program to read base, width and height of parallelogram and calculate its area and
perimeter.
13) Write a program to accept the year and check if it is a leap year or not.
15) Write a program to input a number and print its square if it is odd, otherwise print its square
root.
16) Write a program to input a number and check whether it is positive, negative or zero.
17) Write a program to input percentage marks of a student and find the grade as per following
criterion:
Marks Grade
>=90 A
75-90 B
60-75 C
Below 60 D
18) Write a program to print whether a given character is an uppercase or a lowercase character or
a digit or any other character.
19) Write a program to calculate and print the roots of a quadratic equation ax²+bx+c=0.(a≠0)
23) Write a program to calculate BMI and print the nutritional status as per following table:
PROGRAM NO. – 1: Write a program to accepts two integers and print their sum.
CODE:
OUTPUT: