0% found this document useful (0 votes)
9 views3 pages

Java Programing Questions Till If Else

The document contains a series of programming homework questions focused on basic calculations and data handling. Tasks include calculating averages, areas, discounts, tax, and converting temperatures, among others. Each question requires writing a program to perform specific operations based on user input.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Java Programing Questions Till If Else

The document contains a series of programming homework questions focused on basic calculations and data handling. Tasks include calculating averages, areas, discounts, tax, and converting temperatures, among others. Each question requires writing a program to perform specific operations based on user input.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Homework

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.

Q2: Write a program to calculate the area and perimeter of reqtangle,


square and circle.

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.

Q5: Write a program to accept temperature in celcius and convert into


fahrenheit.

Q6: Accept the number and print the number if it is positive.

Q7: Accept number and find whether it is odd or even.

Q8: Accept number and find whether it is positive, negetive or zero.

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.

Q13:Write a program to accept three number and print the numbers


which are dividible by 3 and 4.

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

Q17: Write a program to calculate the tax according to the following:


Income Age Tax
upto Rs 250,000 upto 60 2.32%
above 60 2.12%
Above Rs 250,000 upto 60 3.25%
above 60 2.75%

Q18: Write a program to calculate electricity bill according to the


following:
Unit Consumption Charge
1st 100 unit s 150 only
Next 50 units Rs 2.25 per unit
Next 50 units Rs 2.65 per unit
Units above 200 Rs 3.30 per unit

You might also like