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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started