Need Help ?

Home >> Assignments >> computer_science >> Create the foundation of a menu and ticket system for a restaurant point of sale (POS) system using Object Oriented Programming practices

(Solved): Create the foundation of a menu and ticket system for a restaurant point of sale (POS) system using Object Oriented Programming practices ...



Objective:

Create the foundation of a menu and ticket system for a restaurant point of sale (POS) system using Object Oriented Programming practices. In this project we will create Constructors,

Setters, Getters, and toString methods.

Grade Table:

Task Points

Documentation report 20

Jar file is executable and guidelines are followed 20

Driver class is created as described below 20

Menultem class is created as described below 20

Menu class is created as described below 20

Ticket class is created as described below 25

TOTAL (Points Possible) 125

Instructions:

In this project we are creating part of a restaurant point of sale (POS) system. In future projects we will add additional functionality. For this project you will need to create the following four class files with the listed attributes and methods:

Menultem

String name

Double price

String description

Int orderCode

Each of the above attributes needs appropriate setters and getters

The class needs a toString method

Menu

String restaurantName

o ArrayList of Menultems

o A method to add items the above ArrayList of Menultems

o Setters and getters for the restaurantName

o A toString method that prints the name of the restaurant followed by all of the items in theMenu

Ticket

Int tableNumber

ArrayList of Menultems

A method to add items to the above ArrayList of Menultems

Setters and getters for tableNumber

A getTotal method that returns the total of the items in the ArrayList of Menultems(this is a calculated field)

A toString method that prints

tableNumber

All of the items in theTicket

o The total of the items in ArrayList of Menultems

Driver - A file to test the above classes, the driver should contain the main method and needs to perform the following:

Instantiate 10 Menultems objects with the proper attributes.

Instantiate 1 menu object.

Add the above 10 Menultems to the menu

o Print the menu to the screen

Instantiate 2 ticket objects

Add 3 different Menultems to each of the ticket objects

Print both tickets to the screen



We have an Answer from Expert

View Expert Answer

Get Expert Solution


/////////////////////////////////////////////////MenuItem.java/////////////////////////////////////////////////////////////////////////

package com.java.restaurantPOS;

public class Menultem {

private String name;

private double price;

private String description;

We have an Answer from Expert

Buy This Answer $5

Place Order

QUICK ORDER

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing
Order Now