0% found this document useful (0 votes)
19 views1 page

Java Programming Practice Questions

Uploaded by

charansm2005
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)
19 views1 page

Java Programming Practice Questions

Uploaded by

charansm2005
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

JAVA QUESTIONS

1.A person deposits ₹500 every month in a savings account. Write a program using a while
loop to calculate the total savings after each month until it reaches ₹5000.

2.A shop offers a discount chart for 1 to 10 items. Each item costs ₹50.

Write a program using a for loop to display the total cost for 1 to 10 items.

3.A water tank can hold 100 liters. Water flows in at 10 liters per minute.

Write a program using a while loop to display the filled capacity after each minute until the
tank is full.

You might also like