Question

In: Computer Science

Please, I need resturant like authentic food, anything suitable with this is fine. Your data models...

Please, I need resturant like authentic food, anything suitable with this is fine.

Your data models must consist of entity lists and entity-relationship diagrams for:

1. Food items (meals/dishes) the restaurants serve o 3 to 5 food types

2. Facilities and equipment

3. Employee work hours and salaries

4. Tracking day-to-day cash flow o Income and spending

5. Competitive o Renovation cost and extra earned income o Promotion cost and extra earned income.

Data modelling

1. Create a list of entities and their attributes from your business statement o You will lose points if you do not create the list of entities and their attributes

2. Create (draw) the entity-relationship diagrams (ERDs and EERDs) for your database using: a. lists of entities from (a) and b. business rules from your business statement

Solutions

Expert Solution

Entities:

Customer: Id, Name, ContactNo

Orders: Order_No, Date, Time

Food_Items: Id, Name, Price, Qty

Food_Type: Id, Name

Payment: Payment_Id, Price

Cashier: Salary

Waiter: Salary

Cook: Salary

Employee: Id, Name, Income, Spending, Hours, Extra_Income

Equipments: Id, Name

Restaurant: Id. Name,Promotion_Cost, Renovation_Cost

Facilities: Id, Type

Requirement Analysis(Business Statement) - A customer can give multiple orders. Orders can have multiple food items and a food item can be present in multiple orders. A food type will have many food items but a food item will belong to a single food type. Orders will have payment.( 1 to 1 relationship). Every waiter serves more than one orders but every order is served by only one waiter. Every cook prepares more than one food items but every food item is prepared by only one cook. Payment is processed by a single cashier and a cashier processes multiple payments. Waiter, cook and cashier are employees. Employees provide facilities. Employees use equipments. Many Employees are Employed By Restaurant.

Relationship(Business Rules):

Customer gives Orders :- 1 to many relationship.

Orders have Food_Items :- many to many relationship.

Food_Items belong_to Food_Type :- many to 1 relationship.

Orders have Payment :- 1 to 1 relationship.

Payment is Processed By :- N to 1 relationship.

Food_Items is Prepared By :- N to 1 relationship.

Waiter Serves Orders: N to 1 relationship.

Employee uses Equipment: 1 to N relationship.

Retaurant provides Facility: 1 to N relationship.

Employee is Employed By Restaurant :- N to 1 relationship.


Related Solutions

Please using your OWN words give a response to the segment below. Can be anything like...
Please using your OWN words give a response to the segment below. Can be anything like do you agree or disagree? Why or why not? Add anything to this statement. Privacy- "the state or condition of being free from being observed or disturbed by other people"(Oxford Languages). I do believe that people have the right to their privacy. I don't believe that people should have to have their personal lives exposed for the rest of the world. When it comes...
Please using your OWN words give a response to the segment below. Can be anything like...
Please using your OWN words give a response to the segment below. Can be anything like do you agree or disagree? Why or why not? Add anything to this statement. To me, privacy is the right to keep information confidential and out of public knowledge. Privacy is a fundamental right, essential to autonomy and the protection of human dignity, serving as the foundation upon which many other human rights are built (PI, 2017). I do believe privacy is a moral...
I need to calculat The duration of bond I just need anything under this topic because...
I need to calculat The duration of bond I just need anything under this topic because the question will be like this so I need any question so I can study it
I need a response for the statement below. Anything to add to the statement, corrections or...
I need a response for the statement below. Anything to add to the statement, corrections or questions about the statement? Eugenics, broken down, means good genes (Pence, 2017). There are positive and negative eugenics. Some contemporary developments in eugenics is “designer babies.” A designer baby is a baby whose genetic makeup has been designed prior to its birth to ensure desired characteristics or to prevent undesired ones (Pence, 2017). This reminds me of people wanting to have Olympic athletes as...
I need a response for the statement below. Anything to add to the statement, corrections or...
I need a response for the statement below. Anything to add to the statement, corrections or questions about the statement? The history of eugenics can be dated back to the 19th c (Wilson,2019). Eugenics is a practice that aids in filtering out good and bad genes in one's genetic makeup. Ideally, for some, this practice would focus primarily on ruling out disease processes rather than for aesthetics. However, sometimes in eugenics, it also includes the concept of trying to create...
I need food sources of each nutrient listed below please, food examples 1. Carbohydrates- Plant sources:...
I need food sources of each nutrient listed below please, food examples 1. Carbohydrates- Plant sources: simple carbs 2. Carbohydrates -plant source- complex carbs, 3 groups. 3. Animal sources of carbohydrates 4. Plant sources of protein 5. Animal sources of protein.
I need to understand how I would edit this code without changing anything, only adding. I...
I need to understand how I would edit this code without changing anything, only adding. I am not looking for the exact answer, just information on how I would use the given code to complete some of the todo statements. Thank you! // include this header file so we can use `printf()` #include <stdio.h> // every C program must implement the `main()` function int main(int argc, char *argv[]) {    //TODO: check for enough arguments       // save the...
State a data structure that is suitable for storing (i) the words in a dictionary to...
State a data structure that is suitable for storing (i) the words in a dictionary to facilitate searching (ii) the set of folders you have in your computer Explain your choices.
(I need your Reference URL LINK, please) ( i need Unique answer, don't copy and paste,...
(I need your Reference URL LINK, please) ( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) Q1. Define the following terms: A. Contingency table (Introduction to Biostatistics) B. Chi-square test (Introduction to Biostatistics) Q2. List the assumptions required to perform a chi-square test? (Introduction to Biostatistics) ( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please)
(I need your Reference URL LINK, please) ( i need Unique answer, don't copy and paste,...
(I need your Reference URL LINK, please) ( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) Q1. Define the following terms: A. Contingency table (Introduction to Biostatistics) B. Chi-square test (Introduction to Biostatistics) Q2. List the assumptions required to perform a chi-square test? (Introduction to Biostatistics) ( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT