CMPT 354 Chapter Notes - Chapter 1: Mark Dever

56 views2 pages
Cmpt354Assignment1(Due:Jan25thintheCSILdropbox)
Question1:(25marks)
Wewouldliketodesignadatabaseforadessertproductioncompany:
Thetypesofdessertssoldare:
‐SmallPastries(Petitefour),whichincludefruittarts,macaroons,andcookies
‐Cakes,whichincludetiramisu,blackforest,andcheesecake
Alldessertshaveaunitprice,description,andrecipe.Pastrieshavesweetnessratings(anumberfrom1
to10)andcolor.Cakeshavesize(6”,8”,and9”)anddecorations(thisisstandardforeachtypeofcake).
Thecompanyhasfourtypesofemployees:Bakers,Frontlineworkers,deliveryboys,and
Tech/Webmasters.Eachdepartmenthasitsuniquemanagerwhoworkswithinthatdepartmentwhois
alsoresponsibleforhiringnewstaff.Thebakersandfrontlineworkersareresponsibleforproducing,
packaging,andprovidingqualitycontrol(tocheckforhairs,aesthetics,foodsafety,etc.).Finally,the
deliveryboysareresponsibleforcontactinganddeliveringtoretailstores(datesofdeliverytimesareto
berecorded).TheSmallPastriesaredeliveredtogeneralsupermarkets(suchasSafeway,Superstore),
whereasCakesaredeliveredtoindependentbakeries.
DrawanERdiagramthatwillmanageadatabaseofthedessertproductioncompany.Writedownany
assumptionsmadeinthedesignprocess(theymustbereasonableassumptions).Besuretosimplify
thingsasmuchaspossible(asfewentitiesandrelationsaspossible).Pleaseusenotationsandsymbols
discussedinclassanddonotincludenotationswhichweforbade:)
Question2:(6marks)
ConsiderthetranslationfromTernarytoBinaryrelationsdiscussedinclass:
a) GiveaninstanceofER2thatcannotberepresentedbyER1.Explainindetailwhythisisso.
b) ModifyER2sothateveryinstanceofER2willcorrespondtoaninstanceofER1.Giveadetailed
descriptionofyourlogic.

find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents