Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

9. Understand the phenomenon of code switching and interlanguage.

Answered: 1 week ago