Question

In: Computer Science

Perfect Pizza is a pizza delivery and pick up shop. They are hiring you to create...

Perfect Pizza is a pizza delivery and pick up shop. They are hiring you to create a database designed to track their customers, employees, products, and orders. They want to use the customer’s telephone number to identify the customer. They also are interested in an order detail table to store the price charged. They restrict delivery to zip codes: 29572, 29575, 29577, 29578, 29579, and 29588. They want the city and state auto filled but want the option to enter other cities and states due to pick up orders. For Milestone 2: 1) Using the entities and attributes you created in Milestone 1, create an Entity Relationship Diagram (ERD) for Perfect Pizza a. Be sure to indicate the Primary Key in Bold b. Be sure to indicate the Foreign Key in Italics 2) For each Entity: a. List the Attributes with the Data Type, Field Size, and Format if needed you plan to use. This should be neatly done in a separate table for each entity

Solutions

Expert Solution

ERD for given requirement :

Question 1:

This ERD consist Entities are :

  1. Customer entity
  2. Order entity
  3. Product entity
  4. Order_product entity
  5. Employee entity
  6. Order_Detail entity

Relationships :

  1. There are make relationship between Customer entity and Order entity
  2. There are consist relationship between Order entity and Order_Detail entity
  3. There are For relationship between Order entity , product entity and Order_product entity
  4. There are Handle relationship between Product entity and Employee entity

Multiplicity :

  1. There are 1:M multiplicity between Customer entity and Order entity
  2. There are 1:M multiplicity between Order entity and Order_product entity
  3. There are 1:M multiplicity between product entity and Order_product entity
  4. There are M:M multiplicity between Employee entity and product entity
  5. There are 1:1 multiplicity between Order entity and Order_Detail entity

Pk and FK in the ERD:

PK :

  • 1) TelephoneNo : PK in Customer entity
  • 2) OrderID : PK in Order entity
  • 3) product_id : PK in product entity
  • 4) Employee_id : PK in employee entity

FK :

  • 1) TelephoneNo : FK in Orders entity
  • 2) OrderID : FK in Order_Detail entity and Order_product entity
  • 3) product_id : Fk in Order_product entity   

Question 2:

Attributes with its data type :

1) Customer entity  

Attributes Data type
TelephoneNo INT(10)
name VARCHAR(20)
email_id VARCHAR(40)
state VARCHAR(20)
city VARCHAR(20)
ZIP_CODE INT(10)

2) Orders entity:

Attributes Data Type
OrderID INT(15)
Type VARCHAR(10)
Date DATE
Time TIME
TelephoneNo INT(10)

3) Order_Detail entity:

Attributes Data Type
price_charged DECIMAL
City VARCHAR(20)
state VARCHAR(10)
ZIP_Code INT(10)
OrderID INT(15)

4) Order_product entity:

Attributes Data Type
OrderID INT(15)
Product_ID INT(10)

5) Product entity:

Attributes Data Type
product_id INT(10)
name VARCHAR(10)
description VARCHAR(225)
price DECIMAL

6) Employee  entity

Attributes Data Type
Employee_id INT(5)
name VARCHAR(20)
address VARCHAR(20)
PhoneNo INT(10)

Thank you..............


Related Solutions

Perfect Pizza is a pizza delivery and pick up shop. They are hiring you to create...
Perfect Pizza is a pizza delivery and pick up shop. They are hiring you to create a database designed to track their customers, employees, products, and orders. Their needs are outlined below. They want to use the customer’s telephone number to identify the customer. They are interested in households, not individuals. They need the street address and zip code for delivery. They only deliver to the following zip codes: 29572, 29575, 29577, 29578, 29579, and 29588. Since all zip codes...
Perfect Pizza is a pizza delivery and pick up shop. They are hiring you to create...
Perfect Pizza is a pizza delivery and pick up shop. They are hiring you to create a database designed to track their customers, employees, products, and orders. Their needs are outlined below. They want to use the customer’s telephone number to identify the customer. They are interested in households, not individuals. They need the street address and zip code for delivery. They only deliver to the following zip codes: 29572, 29575, 29577, 29578, 29579, and 29588. Since all zip codes...
Pizza Hut is facing stiff competition in it pizza delivery service, and you are the owner...
Pizza Hut is facing stiff competition in it pizza delivery service, and you are the owner who is particularly concerned about being able to provide call-in customers with a guarantee as to how quickly their pizza would arrive. You have collected a month’s worth of data that included travel time (y)/ minute and delivery distance (x)/miles. You want to know if you can use delivery distance to predict travel time. You run regression on excel, and get the following output....
A pizza shop claims its average home delivery time is 27 minutes. A sample of 30...
A pizza shop claims its average home delivery time is 27 minutes. A sample of 30 deliveries had a sample average of 30.7 minutes. Assume the population standard deviation for the​ shop's deliveries is 7.1 minutes. Complete parts a and b below. a. Is there support for the​ shop's claim using the criteria that the sample average of 30.7 minutes falls within the symmetrical interval that includes​ 95% of the sample means if the true population mean is 27 ​minutes?...
You are analyzing the stock of Pizza Hub, an online pizza delivery company. Your estimate of...
You are analyzing the stock of Pizza Hub, an online pizza delivery company. Your estimate of the cost of equity is 16 percent. The most recent dividend is $0.20 per share. You expect dividends to grow 15 percent per year for three years and 8 percent per year thereafter. What is your estimate of the stock price?
Paul’s Perfect Pepperoni Pizza Palace makes super awesome pizzas for both delivery and take-out. The management...
Paul’s Perfect Pepperoni Pizza Palace makes super awesome pizzas for both delivery and take-out. The management at Paul’s has always just used paper tickets to record orders. These tickets are then saved in a box for future use (like reporting.) Since the orders are paper, management has no way to get information about sales other than to manually count and aggregate sales based on the paper ticket. As you can imagine, this never happens (Paul is kind of lazy.) Paul’s...
Godfather Pizza is a popular pizza restaurant near a university campus. This pizza shop is very...
Godfather Pizza is a popular pizza restaurant near a university campus. This pizza shop is very popular as the price is reasonable, and the quality of the pizza is excellent. It has broad range of varieties, which students can choose the type of dough and topping. The everyday sales activity is high, which keep this pizza shop busy. However, Greg Taylor, the accountant   noticed that there is a small profit compares to the sales. Greg starts analyzing the efficiency of...
Pompeii's Pizza has a delivery car that it uses for pizza deliveries. The transmission needs to...
Pompeii's Pizza has a delivery car that it uses for pizza deliveries. The transmission needs to be replaced and there are several other repairs that need to be done. The car is nearing the end of its life, so the options are to either overhaul the car or replace it with a new car. Pompeii's has put together the following budgetary items: Present Car New Car Purchase cost new    $30,000 Transmission and other repairs $8,500 Annual cash operating cost...
A customer wants to estimate the average delivery time of a pizza from the local pizza...
A customer wants to estimate the average delivery time of a pizza from the local pizza parlor. Over the course of a few months, the customer orders 28 pizzas and records the delivery times. The average delivery time is 20.06 with a standard deviation of 5.271. If the customer estimates the time using a 95% confidence interval, what is the margin of error? Question 1 options: 1) 2.0439 2) 1.6967 3) 0.9961 4) 0.6215 5) 2.0405 Question 2 (1 point)...
Pompeii's Pizza has a delivery car that it uses for pizza deliveries. The transmission needs to...
Pompeii's Pizza has a delivery car that it uses for pizza deliveries. The transmission needs to be replaced and there are several other repairs that need to be done. The car is nearing the end of its life, so the options are to either overhaul the car or replace it with a new car. Pompeii's has put together the following budgetary items: Present Car New Car Purchase cost new    $32,000 Transmission and other repairs $8,500 Annual cash operating cost...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT