Java Programing Questions Till If Else
Java Programing Questions Till If Else
14/11/22
Q1: Write a program to accept the name of a student and his marks for
three subject, and calculate the average and print its name and
subjects.
Q3: Write a program to print the name of a customer and his bill
amount, when bill amount will be discount= 15% of the purchased
amount.
Tax = 12% of ( purchased amount - discount)
Bill amnt = Purchased + tax - discount.
Q4: Write a program to accept name and age of two persons and find
the average age.
1
Q9: Write a program to find the difference between two numbers.
Q10: Write a program to accept three number and print the greatest
number.
Q11: Write a program to accept a number and print the number if the
number is positive even.
Q12: Write a program to accept three number and print the number
which are negative odd.
Q14: Write a program to accept three number and print the numbers
which are dividible by 2 or 5.
Q15: Write a program to print the name of a customer, when his bill
amount will be as follows:
Purchased amount Discount%
upto 5000/- nil
5000 to 10,000 12
above 10,000 15
Tax =12.3% of purchased amount
Bill = Purchased amount + Tax - Discount
2
Q16: Write a program to accept the name of the student and his marks
for physics, chemistry and mathematics, then print the grade
according to the following:
Average Grade
80 and above A
60 to 79 B
40 to 59 C
Below 40 Fail