0% found this document useful (0 votes)
13 views4 pages

Spring-2020 cs403 1 Sol

The document provides instructions for Assignment No. 01 for the Database Management Systems course. It states that the assignment covers conceptual database design and involves drawing a context level diagram and entity relationship diagram (ERD) for a pharmacy management system called "The Pharmacy". The assignment is due by June 1, 2020 and must be submitted in .doc or .docx format with the student's ID as the file name. Late or plagiarized assignments will not receive credit.

Uploaded by

Bilal Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

Spring-2020 cs403 1 Sol

The document provides instructions for Assignment No. 01 for the Database Management Systems course. It states that the assignment covers conceptual database design and involves drawing a context level diagram and entity relationship diagram (ERD) for a pharmacy management system called "The Pharmacy". The assignment is due by June 1, 2020 and must be submitted in .doc or .docx format with the student's ID as the file name. Late or plagiarized assignments will not receive credit.

Uploaded by

Bilal Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Assignment No.

01
Total Marks: 20
SEMESTER: Spring 2020
CS403- Database Management System Due Date: 01/06/2020
Instructions
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit if:
 The assignment is submitted after due date.
 The submitted assignment does not open or file corrupt.
 The assignment is full or partially copied from (other student or ditto copy from handouts or internet).
 Student ID is not mentioned in the assignment File or name of file is other than student ID.
 The assignment is not submitted in .doc or .docx format.

Uploading instructions
Your submission must include:

 Assignment should be in .doc or .docx format.


 Save your assignment with your ID (e.g. bx020200786.doc).
 Assignment submission through email is NOT acceptable.

Objectives
The objective of this assignment is
 To be able to understand Conceptual Database Design.

Note:
Your answer must follow the below given specifications.
 Font style: “Times New Roman”
 Font color: “Black”
 Font size: “12”
 Bold for heading only.
 Font in Italic is not allowed at all.
 No formatting or bullets are allowed to use.
 Your answer should be precise and to the point, avoid irrelevant detail.

Lectures Covered: This assignment covers Lecture # 01 - 10


Deadline
Your assignment must be uploaded/submitted on or before 01/06/2020.
Question Statement

Manual Record keeping is a hectic process, for the simplification we are going to develop an application for
Pharmacy Management System named as “The Pharmacy”. The pharmacy is a system which stores data into the
database in an organized manner.

The Pharmacy admin place medicines on shelves and store shelve number in database so that, it’s easy to find
medicine when required.

To purchase medicines from this system the user should have a valid doctor’s prescription. The end user visits the
“The Pharmacy” website and places an order by filling the order form. After the placement of order, the
pharmacist verifies the prescription (provided by the user) with the medicine listed in the shopping cart.

The medicines are packed and shipped after the verification process. The payment is made through online Credit
Card.

You’re required to perform the following tasks according to above scenario.


 Draw the context level diagram. (05)
 Identify Entities, their attributes, relationships among entities. (05)
 Draw the Entity Relationship Diagram (ERD). (10)

Note: You are required to submit Context level diagram and ERD as your solution only.

=====================================Ended=======================================

For any query about the assignment, contact at [email protected]

GOOD LUCK
Solution:
Draw the context level diagram.

Identify Entities, their attributes, relationships among entities.

Entities Attributes Relationship


Medicine med_id, name, price, expiry_date Medicine--- Shelve
Many to one
Medicine-- ShoppingCart
Many to one
Shelve shelve_id, number Shelve-- Medicine
One to many
Prescription presc_id, image_url Prescription-- Order
One to one
Order order_id, date, time, medicines, total_price Order -Prescription
One to one
Order- medicine
One to many
Order- payment
One to one
Order-Pharmacist
Many to one
Order- user
Many to one

Pharmacist pharm_id, name, number, address, username, Pharmacist-- Order


password One to many
User user_id, name, password, number, address User-- order
One to many
User -shoppingCart
One to one
Shopping Cart cart_id, cart_items, amount ShoppingCart- Medicine
One to many
Payment payment_id, card_number, amount, date, time, Payment-creditCard
status One to one
Credit Card card_number, expiry_date CreditCard-Payment
One to one
Draw the Entity Relationship Diagram (ERD).

You might also like