Project description: Write a Java program to simulate an online shopping cart.
A shopping cart is a collection of items selected by a customer for purchase. A user can add items to the cart, remove them, empty the cart, view the items in the cart, view the items in the shop, and end shopping and proceed to checkout.
In step 3 you will be partially replacing the command line interface with a GUI interface constructed with Swing to add customer and payment objects and to view the items in the shopping cart. For example, the customer might look something look like Figure 1. See image.
For ease of implementation, you will keep the basic program structure from step 2. That is, the program will continue to behave as essentially a command line program. When the user selects option 4, 8, or 9, the program will invoke the GUI interface. As an extension, you can add an “add payment” button to the customer form to invoke the payment form.