Vous êtes sur la page 1sur 2

MIS 6308

Spring 2015
Assignment 1
Due Date: Feb 16
Question 1:
Consider the following classes.
Student
-Student Number
-Student Name
-Cumulative GPA
-Course Grades
+ComputeGPA
-ComputeGradePoints

UndergradStudent
GradStudent
+CheckDeansList( -UndergraduateDegree
+CheckDeansList()
)
+ComputeGPA

In the above diagram, UndergradStudent and GradStudent are sub classes of Student. CheckDeansList is
a method that determines whether a student will be honored as a Deans List student. The criteria for this
determination are different for graduate and undergraduate students. The symbol - stands for private and
+ stands for public.
In the above diagram,
a) Which attributes are inherited by UndergradStudent? GradStudent? Student?
b) Which methods are inherited by UndergradStudent? GradStudent? Student?
c) Which element in the above diagram is an example of polymorphism?
d) What is the interface for student?
e) I would like to ensure that every student object in my system is either Undergraduate student or
graduate student. What should be the type (abstract or concrete) of each of these three classes?
f) A student object in my system can be an undergraduate student, a graduate student, or other guest
students. In this case, what should be the type (abstract or concrete) of each of these three classes?
g) I would like to maintain course registration information of students. The registration information
includes course taken, semester taken, grade obtained for every course taken by a student. Modify the
Student class to incorporate the above data. You can also define additional classes and relate that to the
student class.

Question 2:
Consider the following operations of a gym membership system.
When members join the gym, they pay a fee for a certain length of time. Throughout the year, the gym
offers a variety of discounts on their regular membership price. The gym mails out reminders to members
asking them to renew their memberships one month before the memberships expire. The gym maintains
the member account data in order to keep track of membership status. The gym manager tracks each time
a member visits the gym. The gym identifies heavy users and light users based on this data. Periodically,
the gym sends different promotional materials to heavy and light users.

1. Develop a context diagram for the above gym.


2. Develop a use case diagram that depicts the major operations of the gym.

Vous aimerez peut-être aussi