Question

In: Computer Science

A course consists of many subjects, but each subject can only be associated with one course....

A course consists of many subjects, but each subject can only be associated with one course. Each subject is co-ordinated by a lecturer and each lecturer can co-ordinate many subjects. Subjects and courses are identified by subject and course codes, and have a name. Lecturers are identified by an ID and have a name, room number and telephone contact number

.a. Using Enterprise Architect, create an ERD representing the above scenario. You need to include the cardinality of the relationships.

b. Transform the ERD to a set of relational tables.

Solutions

Expert Solution

Entity Relationship Diagram (ERD) :

This ERD consists of three entities

  • Course :
    • Course_Code-Primary key
    • Course_Name
  • Lecturer :
    • ID - Primary key
    • Name
    • room_number
    • telephone_number
  • Subject :
    • ​​​​​​​Subject_Code -Primary key
    • Subject_Name
    • Course_Code - foreign key references course table
    • ID-foreign key references lecturer table

*************************************************

Relational tables :

1.Table Name :Course
Create table Course(
Course_Code varchar(10),
Course_Name varchar(50),
Constraint Course_PK Primary key (Course_Code));

2.Table Name :Lecturer
Create table Lecturer(
ID int,
name varchar(50),
room_number int,
telephone_number varchar(20),
Constraint Lecturer_PK Primary key (ID));

3.Table Name :Subject
Create table Subject(
Subject_Code varchar(10),
Subject_name varchar(50),
Course_Code varchar(10),
ID int,
Constraint Subject_PK Primary key (Subject_Code),
Constraint Subject_Course_FK foreign key (Course_Code) references course(Course_Code),
Constraint Subject_Lecturer_FK foreign key (ID) references Lecturer(ID));


Related Solutions

A survey asked subjects how many friends they have and whether this number is associated with...
A survey asked subjects how many friends they have and whether this number is associated with their astrological sign (the 12 symbols of the Zodiac). To compare the reported number of good friends for those who are (married, widowed, divorced, separated, never married), an ANOVA table reports F = 0.80. (a) Specify the null and alternative hypotheses for the ANOVA. (b) Based on what you know about the F distribution; would you guess that F = 0.80 provides strong evidence...
1. Future costs associated with a restructuring can only be recognized if they: Select one: a....
1. Future costs associated with a restructuring can only be recognized if they: Select one: a. will lead to a legal obligation in the future. b. will lead to a constructive obligation in the future. 2. A construction company has contracted with a major university to build a new sports complex. The contract calls for two sports arenas to be built in the next three years. The company will receive $24,000,000 for the project and their engineers originally estimated a...
Between-subject and within-subjects designs differ in several ways. What is the importance of a one-way between-subjects...
Between-subject and within-subjects designs differ in several ways. What is the importance of a one-way between-subjects ANOVA, and what are you comparing? Please explain the processes and application of the one-way ANOVA between-subjects design. You can also explain or define what a one-way ANOVA is and how it applies in research.
A quiz consists of 20 multiple choice​ questions, each with five possible​ answers, only one of...
A quiz consists of 20 multiple choice​ questions, each with five possible​ answers, only one of which is correct. If a student guesses on each​ question, what is the mean and standard deviation of the number of correct​ answers? Round to the nearest thousandth. ______________________________________________________________ A. The mean is 10. The standard deviation is 3.162. B.The mean is 4. The standard deviation is 1.789. C.The mean is 10. The standard deviation is 1.789. D.The mean is 4. The standard deviation...
A research team conducted a survey in which the subjects were adult smokers. Each subject in...
A research team conducted a survey in which the subjects were adult smokers. Each subject in a sample of 200 was asked to indicate the extent to which he or she agreed with the statement. “I would like to quit smoking”. The results were as follows. Strongly Agree: 102 Agree: 30 Disagree: 60 Strongly disagree: 8 Can one conclude on the basis of these data that, in the sampled population, opinions are not equally distributed over the four levels of...
Six subjects took part in a weight loss study. Each subject was weighed at the beginning...
Six subjects took part in a weight loss study. Each subject was weighed at the beginning of the study. The subjects then completed a six-week diet and exercise plan. They were weighed after completing the plan. Subject Weight Before (lbs.) Weight After (lbs.) 1 285 253 2 265 230 3 302 285 4 293 298 5 269 255 6 288 271 The results are shown below The variable Weight Change is defined as the Weight After minus the Weight Before....
1.A three-course meal at a restaurant consists of a choice of one of 5 salads, one...
1.A three-course meal at a restaurant consists of a choice of one of 5 salads, one of 7 entrees and one of 4 desserts. If a diner chooses each course of her meal randomly, what is the probability that she will choose: a Cobb salad, grilled ribs with corn on the cob, and a slice of boysenberry cobbler. 2. If the letters ACDEINOTU are arranged in order randomly, what is the probability that the arrangement will spell the word "EDUCATION"...
One of the disadvantages of forming a proprietorship is that it is subject to many government...
One of the disadvantages of forming a proprietorship is that it is subject to many government regulations. True False 2.5 points    QUESTION 2 Sarbanes-Oxley Act was passed by Congress in the wake of a series of accounting scandals in the early 2000s. True False 2.5 points    QUESTION 3 A major disadvantage of operating as a proprietorship is that it creates unlimited liability for the business's debt. True False 2.5 points    QUESTION 4 Double taxation can be avoided...
Subject: Cloud computing A cloud provider can have many cloud consumers who are using one or...
Subject: Cloud computing A cloud provider can have many cloud consumers who are using one or more services. However, there can be a number of challenges and events that can threaten the regular levels of service. Explain how the cloud providers can address these challenges and threats?
Understand only one can be asked, but I give a thumbs up for answering as many...
Understand only one can be asked, but I give a thumbs up for answering as many as you can. The cost of good manufactured is credited to which of the following accounts? A. cost of goods sold B. Finished Goods C. Work in Process D. Raw Materials. The cost of goods sold is credited to which of the following accounts? A. Cost of goods manufactured B. work in process C. cost of goods sold D. Finished goods An Immaterial amount...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT