You are on page 1of 6

Assignment 1

As a System Analyzer Design and your task is it improve system given below
and perform an E-R diagram for each of the following situations (if you believe
that you need to make additional assumptions, clearly state them for each
situation):

1. A hospital has a large number of registered physicians. Attributes of


PHYSICIAN include Physician_ID (the identifier) and Specialty. Patients
are admitted to the hospital by physicians. Attributes of PATIENT
include Patient__ID (the identifier) and Patient_Name. Any patient who is
admitted must have exactly one admitting physician. A physician may
optionally admit any number of patients. Once admitted, a given patient
must be treated by at least one physician. A particular physician may
treat any number of patients, or may not treat any patients. Whenever a
patient is treated by a physician, the hospital wishes to record the
details of treatment (Treatment_Detail). Components of
Treatment_Detail include Date, Time, and Results.

2. Table below shows a Grade Report that is mailed to students at the end
of each semester. Prepare an ER diagram reflecting the data contained
in Grade Report. Assume that each course is taught by one instructor.
Assignment 2
You as an IT consultant and your task is to investigate the whole system given
below, identify drawback and give an solution perform and as follows

Section - A
Computer Sciences Department frequent have been complaining to Dane
Country Airport officials about the poor organization at the airport. As a result,
the officials have decided that all information related to the airport should be
organized using a DBMS, and you have been hired to design the database.
Your first task is to organize the information about all the airplanes that are
stationed and maintained at the airport.

The relevant information is as follows:


Every airplane has a registration number, and each airplane is of a specific
model.

The airport accommodates a number of airplane models, and each model is


identified by a model number (e.g., DC-10) and has a capacity and a weight.

A number of technicians work at the airport. You need to store the name, SSN,
address, phone number, and salary of each technician.

Each technician is an expert on one or more place model(s), and his or her
expertise may overlap with that of other technicians. This information about
technicians must also be recorded.

Traffic controllers must have an annual medical examination. For each traffic
controller, you must store the date of the most recent exam. All airport
employees (including technicians) belong to a union. You must store the union
membership number of each employee. You can assume that each employee
is uniquely identified by the social security number.

The airport has a number of tests that are used periodically to ensure that
airplanes are still airworthy. Each test has a Federal Aviation Administration
(FAA) test number, a name, and a maximum possible score.

The FAA requires the airport to keep track of each time that a given airplane is
tested by a given technician using a given test. For each testing even, the
information needed is the date, the number of hours the technician spent
doing the test, and the score that the airplane received on the test.
a. Draw an ER diagram for the airport database. Be sure to indicate
the various attributes of each entity and relationship set; also
specify the key and participation constraints for each relationship
set. Specify any necessary overlap and covering constraints as
well (in English).
b. The FAA passes a regulation that tests on a plane must be
conducted by a technician who is an expert on that model. How
would you express this constraint in the ER diagram? If you cannot
express it, explain briefly.
c. Create an complete Database Management System with any of
database tools.

Section – B

Consider the following information about a university database:

Professors have an SSN, a name, an age, a rank, and a research

specialty.Projects have a project number, a sponsor name (e.g. NSF), a


starting
date, an ending date, and a budget.

Graduate students have an SSN, a name, an age, and a degree program


(e.g. M.S. or Ph.D.) Each project is managed by one professor (known as the
project’s principal investigator).
e. Each project is worked on by one or more professors (known
as the project’s co-investigators).
f. Professors can manage and/or work on multiple projects.
g. Each project is worked on by one or more graduate students
(known as the project’s research assistants).
h. When graduate students work on a project, a professor must
supervise their work on the project. Graduate students can
work on multiple projects, in which case they will have a
(potentially different) supervisor for each one.

Departments have a department number, a department


name, and a main office.
j. Departments have a professor (known as the chairman) who
runs the department.
k. Professors work in one or more departments, and for each
department that they work in, a time percentage is associated
with their job.
l. Graduate students have one major departments in which they
are working on their degree.
m. Each graduate student has another, more senior graduate
student (known as a student advisor) who advises him or her
on what courses to take.
Design and draw an ER diagram that captures the information
about the university. Use only the basic ER model here, that is,
entities, relationships, and attributes. Be sure to indicate any
key and participation constraints.
Pizza Donimoes Hut (PDH) has experienced tremendous growth in demand for
its pizza delivery service and the manager now needs help in modelling the
store’s delivery activities. The operation of the pizza store is as follows:

1. Customers phone in orders for pizza delivery and are uniquely identified
by their phone numbers. Customers also have name, street addresses,
and status (frequent or infrequent).

2. Employees of the store are either cooks or drivers. There may be other
employees, such as the operator who answers the phone calls. Cooks
are identified by cook IDs and drivers by driver IDs. Cooks have a name,
address, phone number, are paid a regular salary, and have a
proficiency level that is determined by the number of months that they
have worked at PDH. Drivers, on the other hand, have a name, address,
phone number, rating, hourly wage, and experience in number of hours
worked at PDH. Other employees have unique ID, name, address and
phone and may have a regular salary if they are employed full time or
may be paid hourly based on their hourly wage.

3. An order is associated with a particular customer and is handled by a


particular driver and a particular cook. An order has a unique ID, cost,
time/date of placement, time/date of delivery, and pizza
types/quantities. You are given an ER diagram (see Figure 1) that
attempts to model the activities of PDH. Criticize the ER diagram with
respect to the problem statement. Based on your critique, give an ER
diagram that better models the problem. Note: in Figure??, the notation
O: N denotes a participation constraint stating that an employee can
handle 0 to N orders, the notations 1:1 denote participation constraints
stating that an order must be handled by exactly 1 employee and must
be placed by a unique customer, respectively, and the notation 1: N
denotes a participation constraint stating that a customer must place an
order, but can multiple orders.

You might also like