1.Write a program in java to check odd or even number.
VIEW ANSWER
2.Write a program in java to check odd or even number without else keyword use.
VIEW ANSWER
3.Write a program in java to find largest or smallest of two numbers.
VIEW ANSWER
4.Write a program in java to find largest or smallest of three numbers.
VIEW ANSWER
5.Write a program in java to accept a number and check whether the number is a special two digit or not.
VIEW ANSWER
6.Write a program in java to accept a number and check: (a) whether the number is divisible by 2 and 5. (b) Whether the number is divisible by 2 but not by 5. (c)Whether the number is divisible by 5 but not by 2.
VIEW ANSWER
7.Write a program in java to accept a number and check whether the number is a perfect square or not.
VIEW ANSWER
8.Write a program in java to accept a number and check whether the number is Buzz number or not.
VIEW ANSWER
9.Write a program in java to accept a number and check whether the number is automorphic number or not.
VIEW ANSWER
10. Write a program in java to accept a year and check whether the year is leap year or not
VIEW ANSWER
11.Write a program in java to enter the temperature and print the following message according to input temperature?
VIEW ANSWER
12.Write a program in java to determine the roots of quadratic equation (if d>=0) taking a, b, c as input, otherwise roots are Imaginary.
VIEW ANSWER
13. Write a program in java to accept three numbers and check whether they are Pythagorean Triplet or not.
VIEW ANSWER
14.Write a program in java to find the Total marks, Percentage and Grade of the student that is appears in five different subjects. Grade according to percentage
VIEW ANSWER
15.Calculate the total charge of Electricity Bill if consumer consume U unit monthly charges according to First 100 Unit 40 paisa per unit, next 200 unit 50 paisa per unit and beyond 300 unit 60 paisa per unit.
VIEW ANSWER
16.A company insures its drivers in the following cases:
If the driver is married.
If the driver is unmarried, male & above 30 years of age.
If the driver is unmarried, female & above 25 year of age.
In all other case driver is not insured. Write a program to determine whether the driver is to be insured or not, if marital status, sex and age are inputs.
VIEW ANSWER
Ternary Operator
1.Write a program in java to accept any integer and check wheather it is odd or even using Ternary Operator Or Without Use If else.
VIEW ANSWER
2.(age>=18) is the condition if the expression is true value “Allowed”is assigned to voting else “Not Allowed” will be assigned to voting. Using Ternary Operator make this program.
VIEW ANSWER
3.Write a program to find largest and smallest of two numbers without using if else.
VIEW ANSWER
4.Write a program in java to find smallest of three numbers without using if else.
VIEW ANSWER
5.Write a program in java to find largest of three numbers using Ternary operator.
VIEW ANSWER
6.Write a program in java leap year or not without using If else statement .
VIEW ANSWER