Informatics Practices
Informatics Practices
Practical File
Q 1:- WAP to check whether a person is eligible for voting or not.
Solution1:-
Output:-
Solution2:-
Output:-
Output:-
[Type here]
Q4:- WAP to check whether number is divisible by 3 or not.
Solution4:-
Output:-
Q5:- WAP to check whether the year entered by user is leap year
or not.
Solution5:-
Output:-
Solution6:-
[Type here]
Output:-
Q7:- WAP to accept a no. from 1 to 7 & display the name of the day like 1 for
Sunday, 2
Solution7:-
Output:-
Q8:- WAP to accept percentage from user & display the grade according to the
following criteria:
Marks Grade
>90 A
>80 and <=90 B
>=60 and C
<=80
Below 60 D
Output:-
[Type here]
Solution8:-
Q9:- WAP to accept the cost price of a bike and display the road
tax to be paid according to the following criteria:
Solution9:-
Output:-
Solution10:-
[Type here]
Output:-
Solution11:-
Output:-
Solution12:-
Output:-
[Type here]
Q13:- Accept the temperature in degree Celsius of water and check
whether it is boiling or not.
Solution13:-
Output:-
Solution14:-
Output:-
Solution15:-
[Type here]
Output:-
Solution16:-
Output:-
Q17:- WAP to obtain length and breadth of a rectangle and calculate its
area.
Solution17:-
Output:-
[Type here]
Q18:- WAP to find Body Mass Index (BMI) of a person using person's height
and weight. (Formula: BMI=kg/.
Solution18:-
Output:-
Solution19:-
Output:-
Solution20:-
Output:-
[Type here]
Q21:- WAP to input a value in tones and convert it into quintals and
kilograms.
Solution21:-
Output:-
Solution22:-
Output:-
Solution23:-
[Type here]
Output:-
Q24:- WAP to input three numbers and swap them as this: 1st no. Becomes
the 2nd no., 2nd no. Becomes the third number and the 3rd no. Becomes
the first no.
Solution:-
Output:-
Q25:- WAP to calculate profit percentage from the sales of goods that you
made.
Solution25:-
[Type here]
Output:-
Q26:- WAP that displays a joke. But display the punchline only when the
user passes enter key.
Solution26:-
Output:-
Q27:- Write program to read today’s date from user then display how many
days are left in the current Month.
Solution27:-
[Type here]
Output:-
Solution28:-
Output:-
Solution29:-
Output:-
[Type here]
Q30:- Write the program with maximum three lines of code and that
assigns first 5 multiples of a number to 5 variables and then print them.
Solution30:-
Output:-
Q31:- Write a Python program that accepts radius of a circle and prints its
area.
Solution31:-
Output:-
Q32:- Write Python program that accepts marks in 5 subjects and outputs
average marks.
Solution32:-
Output:-
[Type here]
Q33:- Write a short program that asks for your height in centimeters and
then converts your height to feet and inches. (1 foot = 12 inches, 1 inch =
2.54 cm).
Solution33:-
Output:-
Solution34:-
Output:-
Solution35:-
[Type here]
Output:-
Solution36:-
Output:-
Q37- Write a program to input a number and print its first five multiples.
Solution40:-
[Type here]
Output:-
Q38:- Write a program to read three numbers in three variables and swap
first two variables with the sums of first and second, second and third
numbers respectively.
Solution42:-
Output:-
Q4:- Write a program to input the cost price, selling price and print the
profit earned.
Solution43: -
[Type here]
Output:-
Q44:- Write a program to input the total liabilities and shareholders' equity
of a company and print its D/E Total Liabilities.
Solution44:-
Output:-
Q45:- Write a program to input a company's total assets and total equity
and print its equity multiplier as Total Assets/Total Equity.
Solution45:-
Output:-
[Type here]
Solution46:-
Output:-
Solution47:-
Output:-
Q48: - Write a program that reads from user (i) an hour between 1 to 12
and (ii) number of hours ahead. The program should then print the time
after those many hours.
Solution48:-
[Type here]
Output:-
Q49:- . Write a program to input two numbers and test it first number is
divisible by the second number or not.
Solution49:-
Output:-
Solution50:-
Output:-
[Type here]