you must accept the fact of life make it interrogative
Answers
Answer:
Why must I accept the fact of life?
Explanation:
I hope this will help.
Answer:
Write Java program (any 5) :- [5x5=25]
i) Write a program to accept a number and check whether the number is perfect square or not
Sample Input : 81
Sample output : A perfect square
ii) Vishal Mega Market has announced winter discount on the purchase of items, based on the total
cost of the items purchased :
Total cost Discount
Up to 2000 5%
2001 to 5000 10%
5001 to 10000 15%
Above 10000 20%
Write a program to input the total cost. Display the discount and amount to be paid after getting
discount.
iii) Write a program to accept any two digit number print the
a) Sum of individual digits
b) Difference of individual digits
c) Product of digit
Sample Input : 74 Sample output : 7 + 4 = 11
7 – 4 = 3
7 * 4 = 28
iv) Write a program to enter three interior angles of a triangle and check whether the triangle is
possible or not. If possible, they display whether an acute angled triangle, an obtuced angled
triangle or right angled triangle.
v) Write a program to calculate the gross salary and net salary of an employee when basic salary (bs) =
Rs.12500
da = 12% of bs
hra = 8% of bs
pf = 12% bs
gs = (bs + da + hra)
ns = gs – pf
vi) Write a program to input three unequal numbers display the smallest number am