Practical File Index
Practical File Index
1. WAP to accept two numbers and check for their divisibility i.e. if 2
the first number is completely divisible by the second. The
program should be able to handle divide by zero error i.e. the
program should carry out divisibility only if the denominator is
non-zero.
3. WAP to accept the first name, last name and gender of a user 4
and display the following message “Hello, Mr./Ms Firstname
Lastname Welcome!! Hope You like this program.”
5. WAP to extract the last digit of any number entered by the user 6
and check whether the digit is divisible by 3.
6. WAP to provide the user choice of finding the area of closed 6-8
figures (square, rectangle, circle, triangle). Display a menu to
the user for accepting input for the choice of the figure and take
input, calculate, and display the area of the figure chosen by the
user accordingly.
8. WAP to accept the customer type and bill amount and calculate 8-9
the discount and net amount to be paid. The discount is given
according to customer type.
9. WAP to accept the purchase amount and calculate the Discount 9-10
as well as the net amount to be paid.
10. WAP to accept three numbers and find the largest of them.
10-11
11. WAP to accept the three sides of a triangle and find if given 11
triangle dimensions make a Pythagoras triangle.
14. Write a menu driven program that gives the choice to the user
to find the sum of any of the following series: 13-14
(i) 1+2+3+....... +N
(ii) 1+3+5+....... +N
16. WAP to accept the starting no., ending no., difference in terms
of series, and display the series as well as the sum of the series. 14-15
17. WAP to find factors of a given number and also find if the given
no. is a perfect no. 15-16
18. WAP to accept the base and exponent and find the power. 16