Question: Write a program in java eclipse to simulate the purchases in a grocery store. One customer may buy only one item and another could buy

Write a program in java eclipse to simulate the purchases in a grocery store. One customer may buy only one item and another could buy 50 items, so, you should use either a "while' or a 'do-while' loop. You should read price of each item and number of that item until you enter a terminal value to end the loop. You should add all the prices inside the loop. Add a sales tax of 7.5% to the total price(after coming out of the loop). Print a receipt to indicate all the details of the purchases. All numbers must be appropriately formatted. You could use a text file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!