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.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.