Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question1: Write a complete java program to develop a system for a grocery store. The system will read in the number of items purchased. And
Question1: Write a complete java program to develop a system for a grocery store. The system will read in the number of items purchased. And then read the items' prices accordingly. * Use a loop to read the prices. Make sure that prices are not 0 or negative! The system will also read the delivery charge. Apply 5% VAT on the total bill (excluding delivery) It will calculate the total bill (prices + delivery charge+ VAT) and print the result. Enter the number of items 5 Enter item 1 price -3 Invalid Value 5 1 4 Here are three sample of the run: Enter the number of items Enter item 1 price Enter item 2 price Enter item 3 price Enter Delivery Charge 0.5 Bill without delivery. 10.0 Delivery Charge-0.5 VI 8.5 Total Bill. 11.0 1 Enter the number of items 2 Enter item 1 price Enter item 2 price Enter Delivery Charge 0.3 Bill without delivery= 2.0 Delivery Charge=0.3 VAT 0.1 Total Bill= 2.4 1
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