RESTAURANT MANAGEMENT
SYSTEM
MATRIC NO: BHU/CMP/PGD/
SUBMISSION DATE
APPROVED TOPIC: RESTAURANT MANAGEMENT SYSTEM
PROBLEM STATEMENT
This project will solve the following problems
i. It will display list of food items
ii. It will display list of staff with their job schedule(s)
LIST OF REQUIRED CLASSES
1. MenuItems
2. OrderList
3. RestaurantDriver
CLASS DESIGN DIAGRAM
MenuItems
+ id OrderList
+ name + id
+ description + items
+ price + dateTim
- getiId() + staffId
- getName() + total
-getDescription() - getId()
-getPrice() - getItems()
-isAvailability() -getDateTim()
- getStaffId()
-getTotal()
SOURCE CODE
MenuItems.java code
package finalProj;
public class MenuItems {
private int id;
private String name;
private String description;
private int price;
private boolean availability;
public MenuItems(int id, String name, String description, int price,
boolean availability) {
super();
this.id = id;
this.name = name;
this.description = description;
this.price = price;
this.availability = availability;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
public boolean isAvailability() {
return availability;
}
public void setAvailability(boolean availability) {
this.availability = availability;
}
OrderList.java code
package finalProj;
public class OrderList {
private int id;
private String items, dateTim, staffId;
private int total;
public OrderList(int id, String items, String dateTim, String staffId,
int total) {
super();
this.id = id;
this.items = items;
this.dateTim = dateTim;
this.staffId = staffId;
this.total = total;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getItems() {
return items;
}
public void setItems(String items) {
this.items = items;
}
public String getDateTim() {
return dateTim;
}
public void setDateTim(String dateTim) {
this.dateTim = dateTim;
}
public String getStaffId() {
return staffId;
}
public void setStaffId(String staffId) {
this.staffId = staffId;
}
public int gettotal() {
return total;
}
public void settotal(int total) {
this.total = total;
}
RestaurantDriver.java code
package finalProj;
public class RestaurantDriver {
public static void main(String[] args) {
// TODO Auto-generated method stub
MenuItems foods0 = new MenuItems(1,"Pando Yam","Describtion ",
500, true);
MenuItems foods1 = new MenuItems(2,"White Rice with
beef","Description", 1500, true);
MenuItems foods2 = new MenuItems(3,"Rice, Stew with Plantain and
Chicken","Description",2500, true);
OrderList staff0 = new OrderList(1,"Pando
Yam","10/10/2020","STAFF/001",500);
OrderList staff1 = new OrderList(2,"Pando Yam, White Rice with
beef","10/10/2020","STAFF/003",2000);
OrderList staff2 = new OrderList(3,"White Rice and
beef","15/10/2020","STAFF/002",1500);
System.out.println("RESTAURANT MANAGEMENT SYSTEM");
System.out.println("============================");
System.out.println();
System.out.println("LIST OF MENU ITEMS");
System.out.println("SN "+" ITEMS "+ "DESCRIPTION"+ "PRICE N"+
"AVAILABILITY");
System.out.println(foods0.getId()+ " "+ foods0.getName()+
foods0.getDescription() + foods0.getPrice()+ foods0.isAvailability());
System.out.println(foods1.getId()+ " "+ foods1.getName()+
foods1.getDescription() + foods1.getPrice()+ foods1.isAvailability());
System.out.println(foods2.getId()+ " "+ foods2.getName()+
foods2.getDescription() + foods2.getPrice()+ foods2.isAvailability());
System.out.println();
System.out.println("LIST OF ORDERS");
System.out.println("ID "+" ITEMS "+ " DATE"+ "STAFFID" +
"TOTAL");
System.out.println(staff0.getId()+ " "+ staff0.getItems()+ " "+
staff0.getDateTim() + " "+ staff0.getStaffId() + " " +staff0.gettotal());
System.out.println(staff1.getId()+ " "+ staff1.getItems()+ " "+
staff1.getDateTim() + " "+ staff1.getStaffId() + " " +staff1.gettotal());
System.out.println(staff2.getId()+ " "+ staff2.getItems()+ " "+
staff2.getDateTim() + " "+ staff2.getStaffId() + " " +staff2.gettotal());
}
SCREENSHOT