Question: Write the program code and turn in the source file of the program into Dox box (E-commerce) When shopping online, you select items and add
Write the program code and turn in the source file of the program into Dox box
(E-commerce) When shopping online, you select items and add them to a shopping cart. Duplicate items are permitted in a shopping cart, as you can purchase multiples of the same item. You also can remove an item from a shopping cart, if you change your mind about buying it. The shopping cart can show its current contents with their prices and the total cost of these items.
- Design the ADTs item and shopping cart. Specify each ADT operation by stating its purpose, by describing its parameters, and by writing a pseudocode version of its header. Then write a Java interface for an items methods and one for the methods of a shopping cart. Include javadoc -style comments in your code.
- Draw a UML class diagram for MyShop class that implements one of the interfaces.
- Write an implementation class for the UML class diagram you draw for b. Use MyShop class name.
Your program will be graded based of the followings:
| Compiles and runs correctly | 70% |
| Methods specification & Design
| 20% |
| Package and project structure | 10 % |
What to turn in:
- Use eclipse or the IDE of your choice and create a maven project called PA2!
- Add a package called saintpaul.edu.pa2 to your project, src folder.
- Add all your classes and interfaces to the saintpaul.edu.pa2 package.
- Generate a Zip file of your PA2 assignment and that is what you need to upload to Programming Assignment 2 drop box.
please write it in java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
