Class Diagram University Degrees System

R
e
v
i
s
i
o
n
 
Redraw the following Use Case diagram for an online book shopping
system.
The system allow site visitors to view comments about any avialble
books. A customer also can buy rare books but they have to  he/she
log in first, if they don’t have an account , then they have to register
using a verifiable email account.  Buying through the service of PayPal
system.
Read chapter 5 then answer the following.
customer
View comments
Buy books
Log in
register
Verify email
PayPal
 
online book shopping system
<<extend>>
<<Include>>
<<include>>
Read chapter 7 the create System Sequence diagram for the use
case 
buying a book 
based on the following scenario
U
s
e
 
C
a
s
e
:
 
B
u
y
b
o
o
k
 
A
c
t
o
r
s
:
B
u
y
e
r
P
r
e
c
o
n
d
i
t
i
o
n
:
 
 
 
 
 
 
1
.
 
T
h
e
 
C
u
s
t
o
m
e
r
 
h
a
s
 
a
n
 
a
c
c
o
u
n
t
T
r
i
g
g
e
r
:
 
C
u
s
t
o
m
e
r
 
s
e
l
e
c
t
s
 
b
u
y
 
b
o
o
k
 
b
u
t
t
o
n
F
l
o
w
 
o
f
 
e
v
e
n
t
s
:
 
 
 
 
1
.
 
t
h
e
 
c
u
s
t
o
m
e
r
 
s
h
o
u
l
d
 
l
o
g
i
n
 
c
o
r
r
e
c
t
l
y
 
f
i
r
s
t
    2. search for the book he/she wants to buy
    3. 
.view the description/ price of the book
    4  buy the book
    5. the number of available book should be updated
P
o
s
t
 
c
o
n
d
i
t
i
o
n
:
 
 
 
 
 
 
1
.
 
b
o
o
k
 
d
a
t
a
 
i
s
 
u
p
d
a
t
e
d
 
a
n
d
 
s
o
l
e
d
.
customer
System
login
search for the book
view the description
Buy book
Read chapter 7 the create 
Sequence diagram 
for the use case 
buying a
book 
based on the following scenario
:Account
Buy book
view the description
search for the book
login
C
o
l
l
a
b
o
r
a
t
i
o
n
 
d
i
a
g
r
a
m
 
Read chapter 7 and explain the
difference between
collaboration diagram and
sequence diagram
C
l
a
s
s
 
d
i
a
g
r
a
m
 
A university offers degrees to students.
The university consists of faculties each of which consists of one or more
departments.
Each degree is administered by a single department.
Each student is studying towards a single degree.
Each degree requires one to 20 courses.
A student enrolls in 1-5 courses (per term.)
A course can be either graduate or undergraduate, but not both.
Likewise, students are graduates or undergraduates 
but not both.
Draw a class diagrams which represents the generic objects and relationships
described above. Make sure to specify multiplicities for all associations shown
in your diagrams.
University 2 Scenario
 
A student, whose attributes include studentName, Address,
phone, and age, may engage in multiple campus based
activities. The university keeps track of the number of years a
given student has participated in a specific activity and, at the
end of each academic year, mails an activity report to the
student showing his or her participation in various activities.
Draw a class diagram for this situation
 
 
S
t
a
t
e
 
d
i
a
g
r
a
m
 
State
 
D
i
a
gram
 Example
17
 
 
A very simple microwave oven system
:
 
 
The microwave has a switch to select full or half power, a numeric
keypad to input time, a start/stop button, and an alphanumeric display
.
  
We a
ssumed that the sequence of actions using the microwave is:
1. Select the power level (either half power or full power).
2. Input the cooking time using a numeric keypad.
3. Press Start and the food is cooked for the given time.
 
For safety reasons, oven should not operate when door is open.
 
Solution
18
 
Draw a state diagram for a light in a fridge .The light has two states
either on or off .If the door is opened then the light is on. And if the
door is closed the light is off.
off
On
Door open
Door close
Slide Note
Embed
Share

The class diagram depicts the relationships between faculties, departments, degrees, courses, and students in a university system where students enroll in courses to obtain degrees administered by specific departments. The diagram illustrates the entities and their associations within a university setting.

  • University
  • Degrees
  • Students
  • Courses

Uploaded on Oct 09, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Revision Revision

  2. Read chapter 5 then answer the following. Redraw the following Use Case diagram for an online book shopping system. The system allow site visitors to view comments about any avialble books. A customer also can buy rare books but they have to he/she log in first, if they don t have an account , then they have to register using a verifiable email account. Buying through the service of PayPal system.

  3. online book shopping system View comments PayPal Buy books Verify email customer <<extend>> <<include>> <<Include>> Log in register

  4. Read chapter 7 the create System Sequence diagram for the use case buying a book based on the following scenario Use Case: Buy book Actors: Buyer Precondition: 1. The Customer has an account Trigger: Customer selects buy book button Flow of events: 1. the customer should login correctly first 2. search for the book he/she wants to buy 3. .view the description/ price of the book 4 buy the book 5. the number of available book should be updated Post condition: 1. book data is updated and soled. System customer login search for the book view the description Buy book Update number of book

  5. Read chapter 7 the create Sequence diagram for the use case buying a book based on the following scenario :Account :Book :BookDescription customer login search for the book view the description Buy book Update number of book

  6. Collaboration diagram Collaboration diagram

  7. Read chapter 7 and explain the difference between collaboration diagram and sequence diagram

  8. Class diagram Class diagram

  9. University 2 Scenario A university offers degrees to students. The university consists of faculties each of which consists of one or more departments. Each degree is administered by a single department. Each student is studying towards a single degree. Each degree requires one to 20 courses. A student enrolls in 1-5 courses (per term.) A course can be either graduate or undergraduate, but not both. Likewise, students are graduates or undergraduates but not both. Draw a class diagrams which represents the generic objects and relationships described above. Make sure to specify multiplicities for all associations shown in your diagrams.

  10. A student, whose attributes include studentName, Address, phone, and age, may engage in multiple campus based activities. The university keeps track of the number of years a given student has participated in a specific activity and, at the end of each academic year, mails an activity report to the student showing his or her participation in various activities. Draw a class diagram for this situation

  11. State diagram State diagram

  12. State Diagram Example 17 A very simple microwave oven system: The microwave has a switch to select full or half power, a numeric keypad to input time, a start/stop button, and an alphanumeric display. We assumed that the sequence of actions using the microwave is: 1. Select the power level (either half power or full power). 2. Input the cooking time using a numeric keypad. 3. Press Start and the food is cooked for the given time. For safety reasons, oven should not operate when door is open.

  13. Solution 18

  14. Draw a state diagram for a light in a fridge .The light has two states either on or off .If the door is opened then the light is on. And if the door is closed the light is off. Door open On off Door close

More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#