1. Homepage
  2. Programming
  3. MIS223 Java Programming - Assignment 1: "Cart" OOP Application

MIS223 Java Programming - Assignment 1: "Cart" OOP Application

Engage in a Conversation
CUEBMIS223Java ProgrammingOOPCartJava

MIS223 Java Programming
CourseNana.COM

Assignment 1 – “Cart” OOP Application Spring Semester 2022 CourseNana.COM

Subject: Console OOP application Type: Uncontrolled CourseNana.COM

In this assignment you are required to produce a Java code which simulates a checking out process at CUEB Supermarket. CourseNana.COM

This is an object-oriented application so you have to create a number of classes that will be used in your application. CourseNana.COM

There are four classes that represent goods' types: Beverage
Food
Stationery
CourseNana.COM

EverydayNeeds CourseNana.COM

All this classes implement Goods interface that is given to you: public interface Goods{ CourseNana.COM

public double getPrice();
public String getDescription(); public void setUsed(boolean state); public boolean getUsed();
CourseNana.COM

} CourseNana.COM

As it follows from the interface above classes have at least two fields: price and description (e.g. type of food or brand name). You have to write the code for the classes. CourseNana.COM

One more class is a CheckOut class that represents the object you have to “buy”. The class contains at least four fields (other objects): Beverage, Food, Stationery, and EverydayNeeds. Only completed Cart object may have price. You have to write the code for the class. CourseNana.COM

And finally a Cart class that represent the supermarket and is used to test the checking out”. It contains all parts available at the supermarket and all methods to display menus, get user input, display results etc. CourseNana.COM

You have to finish the code for the Cart class. It should work as next.
CourseNana.COM

1. When you run your application the following menu is displayed: CourseNana.COM

2. If you select “1” from the menu you may shop on beverage. Select a good: CourseNana.COM

After you have selected a good, you are going to decide how many of the selected good you want to buy: CourseNana.COM

3. After decided how many you want to buy, the Beverage Menu will be displayed for continue shopping on beverage: CourseNana.COM

You can repeat the step 2 & 3 for several times. CourseNana.COM

4. After you selected option 6 from the Beverage Menu, the Main Menu will displayed: CourseNana.COM

5. Now if you want to buy more goods (such as Food, Stationery or Everyday Needs), you can repeat step 3 to step 4. CourseNana.COM

6. When you want to check out, you can select option 5 from the Main Menu: CourseNana.COM

 The Main menu will show up after the Cart list.
CourseNana.COM

7. You can choose option 6 from the Main Menu to exit the system: CourseNana.COM

Notice that the goods already in cart is still displayed! If you select new one the previous one should be available next time. CourseNana.COM

If your cart is empty, selecting “Check Out” option causes next message: “You havent selected any goods. Please shop now! CourseNana.COM

All errors and exceptions should be handled. If user enters wrong number (not in menu) or any other wrong information he/she has to be warned. The application shouldn’t crash because of wrong input. CourseNana.COM

Note: CourseNana.COM

For your assignment you have to submit an entire application with all the functionality a described above. It includes all classes (code) you have written. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
CUEB代写,MIS223代写,Java Programming代写,OOP代写,Cart代写,Java代写,CUEB代编,MIS223代编,Java Programming代编,OOP代编,Cart代编,Java代编,CUEB代考,MIS223代考,Java Programming代考,OOP代考,Cart代考,Java代考,CUEBhelp,MIS223help,Java Programminghelp,OOPhelp,Carthelp,Javahelp,CUEB作业代写,MIS223作业代写,Java Programming作业代写,OOP作业代写,Cart作业代写,Java作业代写,CUEB编程代写,MIS223编程代写,Java Programming编程代写,OOP编程代写,Cart编程代写,Java编程代写,CUEBprogramming help,MIS223programming help,Java Programmingprogramming help,OOPprogramming help,Cartprogramming help,Javaprogramming help,CUEBassignment help,MIS223assignment help,Java Programmingassignment help,OOPassignment help,Cartassignment help,Javaassignment help,CUEBsolution,MIS223solution,Java Programmingsolution,OOPsolution,Cartsolution,Javasolution,