Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

fix my assignment

Complete your assignment 3; this time your system should be completely operational. For this reason you have to:

1. Create extra methods in the classes so the objects of those classes can communicate (In assignment 3 your focus was on the internal properties of the objects, this time you need to think about their external behavior). You need to have some scenarios of how the user may interact with the system and how the subcomponents of the system work together. For example, user can place an order, object of which class accepts this request and how that object communicates with the other classes or the object of other classes (Remember addToShoppingCart that we have discussed in the class and how we have decided, this method should be attached to an object of OnlineStore). Try to make any independent method static and call them by NameOfClass.NameOfStaticMethod(...)  .

2. After the first step, your system is almost complete. You need to think about the user input and make an interface to your system, we make this interface in the console. The system asks user what do you want to do and let the user to use it; for example, the user can select purchase and then add the items to card and insert the shipping address and other information (You have to think about the real world) and checkout.

* Note that you are allowed to add as many as classes and methods to your system; however it should be rational to do that and you have to have scenarios to check them.

Create a class OnlineOrderTestDrive. Create the main method inside. Inside your main method create a list of items and add them to a shopping cart object. Create an instance of the OnlineOrder class and call the orderSummery method of that class. Store the result in a variable. Create an instance of the CheckoutSystem and call the checkout method of that object. Show the confirmation message.

Note that there are internal classes that exist but I didn't mention them.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question