Question: Define a new class called Store This class will store information about a restaurant. The Restaurant should keep track the following information about the restaurant:

Define a new class called Store This class will store information about a restaurant.

The Restaurant should keep track the following information about the restaurant:

The name of the restaurant.

The restaurants cuisine

The Address of the restaurant (include street, City, state and zip code)

Whether it has liquor store license or not.

Whether it is kids friendly or not.

The restaurant class need to also implement:

A constructor for populating the restaurant.

Setter and getter methods for all its private attributes.

Any additional methods you think might be useful for completing this exercise.

Define a class called RestaurantCatalog.This class will model a catalog or restaurants that can be edited, and searched.

The RestaurantCatalog class should maintain a list of Restaurant objects in a java array (DO NOT USE ARRAYLIST). It must also provide methods for:

Adding a new Restaurant. Result: a new restaurant object is added onto the list.

Search a restaurant by its name. Result: Returns a reference to the restaurant class that matches the information.

Define a class classed MyApp that includes a main method. This class will serve as the entry point of your application. Within the main method, write code to instantiate a RestaurantCatalog, populate the catalog with information for five restaurants (you can choose the information). Issue a search command to look for a restaurant by name, and display it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!