Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help creating my Restaurant.java class with the skeleton code give below. Also need to create a JUnit Test RestaurantTest.java import java.util.List; public class Restaurant

Need help creating my Restaurant.java class with the skeleton code give below. Also need to create a JUnit Test RestaurantTest.java

image text in transcribed

import java.util.List; public class Restaurant { List employees; List foodsServed; List drinksServed; public void addEmployee(Restaurant employee) { employees.add(employee); } public List foodServed() { return foodsServed; } public List drinksServed(){ return drinksServed; } public int kitchenCookTime(){ return 0; } } 
Restaurant: The restaurant as a whole is represented as an object of your Restaurant class. This is a central class that manages several of the other pieces of data and objects in the system as well as helping serve as a bridge of communication between other objects in the system. The restaurant has many attributes, such as its tables, its waiting list, and so on Be careful, though, not to place too much functionality into the Restaurant class. Follow the Information Expert pattern (aka GRASP pattern) to place functionality into other objects as appropriate when those other objects possess more of the data or knowledge needed to perform the action. If your Restaurant class is very large and the others are very small, you have designed poorly. This program is not especially concerned with the passage of time or the current time of day. For example, you don't need to worry about the time that the restaurant opens and closes, the time that a party of customers arrives to eat, the time needed to cook their food, etc. As the application is running, your code should operate under the assumption that the restaurant is currently open and will remain open while the app is executing. We will also simplify our program by assuming that the restaurant does not worry about parties who want a spot in line to eat at a later time; in other words, the restaurant does not take reservations

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions