Question

In: Computer Science

The Somerton High School PTO is creating a website that will allow students to quickly look...

The Somerton High School PTO is creating a website that will allow students to quickly look up their homework assignments. The database supporting this website will keep track of departments, teachers, classes, and assignments. Each department has a name such as “Math”, “Science”, or “English” and each teacher is a member of a single department. For each teacher, the database should store a title (“Mr.”, “Ms.”, “Dr.”, etc), first name, middle initial, last name, office phone number, and e-mail address. Each class is taught by a one teacher; for each class, the database should store a name, description, meeting period (for example, seventh period), and room number. Finally, each class has multiple assignments. For each assignment, the database should store the date assigned, the date due, and a text description of the work assigned. Obviously, the database also needs to remember which class each assignment is for, and which teacher teaches each class.

A. Design a database to hold all this information. You may create synthetic keys as necessary or convenient.

B. Write outline notation and justify the primary key you have chosen for each table in the database.

C. In Access, create all the necessary tables for this database, and choose a reasonable datatype for each attribute. Assume phone numbers are in standard US format. If you use any “AutoNumber” synthetic primary keys, note that a matching foreign key should have a datatype of “Number”, with a field length of “Long integer”. Create all necessary relations between the tables and enforce referential integrity. You do not have to enter any data or create any forms. Create a “Documenter” report for the database.

Solutions

Expert Solution

Database outline and ER Diagram are as follows:

Following are the tables in the database :

  1. DEPARTMENT
  2. TEACHER
  3. CLASS
  4. ASSIGNMENT

We have following constraint type :

  1. Primary key
  2. Foreign key
  3. Check condition
  4. NOT NULL
  5. UNIQUE

Attributes(Columns in table), Data Type & Constraints for the tables are given below:

Table : DEPARTMENT

Column_name

Data_type

Contraint_type

DEPT_ID            

INT

PRIMARY KEY

DEPT_NAME

VARCHAR(50)

NOT NULL

Table : TEACHER

Column_name

Data_type

Contraint_type

TEACHER_ID

INT

PRIMARY KEY

TITLE

VARCHAR(50)

NOT NULL

FNAME

VARCHAR(50)

NOT NULL

MINIT

VARCHAR(50)

NOT NULL

LNAME

VARCHAR(50)

NOT NULL

OFFICE_PHONE

VARCHAR(50)

NOT NULL

EMAIL

VARCHAR(50)

NOT NULL, UNIQUE

DEPT_ID

INT

FOREIGN KEY references DEPARTMENT table

Table : CLASS

Column_name

Data_type

Contraint_type

CLASS_ID

INT

PRIMARY KEY

NAME

VARCHAR(50)

NOT NULL

DESCRIPTION

VARCHAR(50)

NOT NULL

MEETING_PERIOD

VARCHAR(50)

NOT NULL

ROOM_NO

INT

NOT NULL

TEACHER_ID

INT

FOREIGN KEY references TEACHER table

Table : ASSIGNMENT

Column_name

Data_type

Contraint_type

ASSIGNMENT_ID

INT

PRIMARY KEY

DATE_ASSIGNED

DATE

NOT NULL

DATE_DUE

DATE

NOT NULL

DESCRIPTION

VARCHAR(50)

NOT NULL

CLASS_ID

INT

FOREIGN KEY references CLASS table

ER DIAGRAM :


Related Solutions

In a certain high school, uniforms are optional. A study shows that high school students who...
In a certain high school, uniforms are optional. A study shows that high school students who wear uniforms have a lower grade average than students who don't wear uniforms. From this study, the school administration claims that they should not require the students to wear uniforms because that is the cause of the lowering grades. Another possible explanation is that students who wear uniforms are poorer than the students who don't wear uniforms and the economic situation of their parents...
IN MINITAB  High School Dropouts Approximately 10.3% of American high school students drop out of school before...
IN MINITAB  High School Dropouts Approximately 10.3% of American high school students drop out of school before graduation. Choose 10 students entering high school at random. Find the probability that a. No more than two drop out b. At least 6 graduate c. All 10 stay in school and graduate
In the last decade, only 50.4% of high school students in Tampa’s school district graduated high...
In the last decade, only 50.4% of high school students in Tampa’s school district graduated high school. Aiko believes her high school in St. Petersburg has a higher graduation rate. She collects a random sample of 54 former students of her high school and found that 33 of them graduated. Test Aiko’s belief using a significance level of 0.05.
In the High School there is around 2500 students, 18% of the students smoke cigarettes. A)...
In the High School there is around 2500 students, 18% of the students smoke cigarettes. A) If 2 are selected at random, use a Venn diagram with 2 circles; 1 representing the probability that the first student smokes and 1 representing the probability that the other student smokes. Determine the probability that at least 1 of them smokes cigarettes. (This would be equivalent to the probability that either the first student OR the second student smokes.) B) Repeat the above...
At the local high school, there are 297 students. 71 students are seniors, and out of...
At the local high school, there are 297 students. 71 students are seniors, and out of the 71 students, 53 participate in a sport (while 18 do not participate in a sport). Among those who are not seniors, 69 students participate in a sport and 157 do not. Suppose we choose one student at random from the entire class. A. Are events "drawing someone who is a senior" and "drawing someone who does not play a sport" mutually exclusive? Why/why...
A school district developed an after-school math tutoring program for high school students. To assess the...
A school district developed an after-school math tutoring program for high school students. To assess the effectiveness of the program, struggling students were randomly selected into treatment and control groups. A pre-test was given to both groups before the start of the program. A post-test assessing the same skills was given after the end of the program. The study team determined the effectiveness of the program by comparing the average change in pre- and post-test scores between the two groups....
School A would like to get more high school students to ride the school bus rather...
School A would like to get more high school students to ride the school bus rather than driving to school each day to reduce traffic congestion around the school. To try to encourage more students to ride the bus, the school decides to raise the daily rate for parking in the school parking lot. Design and describe a study that uses an interrupted time series design to provide evidence as to whether the parking rate increase led to an increase...
School A would like to get more high school students to ride the school bus rather...
School A would like to get more high school students to ride the school bus rather than driving to school each day to reduce traffic congestion around the school. To try to encourage more students to ride the bus, the school decides to raise the daily rate for parking in the school parking lot. 1. Design and describe a study that uses an interrupted time series design to provide evidence as to whether the parking rate increase led to an...
In a recent school year in the state of Washington, there were 319,000 high school students....
In a recent school year in the state of Washington, there were 319,000 high school students. Of these, 154,000 were girls and 165,000 were boys. Among the girls, 41,100 dropped out of school, and among the boys, 10,500 dropped out. A student is chosen at random. Round the answers to four decimal places. (a) What is the probability that the student is female? (b) What is the probability that the student dropped out? (c) What is the probability that the...
(8 pts) The superintendent of a large school district speculated that high school students involved in...
(8 pts) The superintendent of a large school district speculated that high school students involved in extracurricular activities had a lower mean number of absences per year than high school students not in extracurricular activities. She generated a random sample of students from each group and recorded the number of absences each student had in the most recent school year. The data are listed below. Test the superintendent’s claim at the α=.01 significance level. [To receive full credit, your response...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT