Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write Java Program to simulate online Store System. Any customer enter the store will assign a new shopping cart. The shopping cart is a collection

image text in transcribedimage text in transcribed

Write Java Program to simulate online Store System. Any customer enter the store will assign a new shopping cart. The shopping cart is a collection of items that a customer uses to collect (items)things for purchase. A customer can add items to the cart, remove them, empty the cart, view the items in the cart, and end shopping and proceed to checkout. The program must have a menu showing its services as shown below: Store System Menu 1. Add a new Item to Store 2. Add a new Customer to Store 3. Add an item to Customer shopping cart 4. View the items in Customer shopping cart 5. Empty Customer shopping cart 6. Exit the program The above services must do the following actions 1. Add a new Item to Store. The system prompts to the user for adding a new item data. The item data contains the following items: - o item number: holds an unique number for the item. O-item name: holds the full name of the item. o item quantity: holds the quantity of the item. O-item price: holds the price of the item Add Item Operation : Please enter the item number: 001 Please enter the item Name: Fifa 20 game Please enter the quantity: 200 Please enter the price : 20.56 Enter the type of item (B)Book, (s)shoes, (G)Game ?: G Item added Successfully Do you want add another item (y)? The above services must do the following actions 1. Add a new Item to Store. The system prompts to the user for adding a new item data. The item data contains the following items:- o item number: holds an unique number for the item. O item name: holds the full name of the item. o-item quantity: holds the quantity of the item. O-item price: holds the price of the item Add Item Operation : Please enter the item number: 001 Please enter the item Name: Fifa 20 game Please enter the quantity: 200 Please enter the price : 20.56 Enter the type of item (B)Book, (s)shoes, (G)Game?: G Item added Successfully Do you want add another item (v)? Add Item Operation : Please enter the item number: 002 Please enter the item Name: Calculus Book Please enter the quantity : 100 Please enter the price : 95.2 Enter the type of item (B)Book, (s)shoes, (G)Game ?: B Enter the Book title : introduction of Calculus Math Enter the Book author name : khaled awad Item added Successfully Do you want add another item (y)?n

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

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

Why dont cumulus clouds form over cool water?

Answered: 1 week ago

Question

=+What kinds of problems need to be overcome?

Answered: 1 week ago