Assignment 7 Design Oop

Embed Size (px)

Citation preview

  • 7/31/2019 Assignment 7 Design Oop

    1/3

    Sandra De La Cruz

    Assignment #7 Object Oriented Design - Introduction

    Read through the Problem Statement. Write in a Word document with lists of the following items for

    this Problem Statement:

    List the Actors. List Use Cases. Each should be a phrase, such as Check Out Books, Search Books, etc. List Classes

    o For Each Class: List the Attributes and associated Data Types List the methods along with:

    Return Value (if needed) and associated Data Type Parameters (if needed) and associated Data Types

    Objective: Determine as many Actors, Use Cases, Classes, Attributes, and Methods that you can think of

    to be candidates. There are no wrong answers. This is a practice exercise. Design the system how you

    would like. You may even want to add new items or change compared to what is mentioned below in

    the Problem Statement. Points will not be taken for any incorrect answers. The objective is to think of

    as many items and possible and give it a try.

    We will not necessarily write pseudo code for all of these methods, this is just an exercise in the first

    steps of OO Design.

    Extra Credit Opportunity! A Total of at least 15 items is required for this Assignment. Any additional

    items will be counted as extra credit for the Assignments Grade.

    Problem Statement: Write a system that will manage college information. The system will need to:

    - Keep track of students enrolled in the college, and all important information for a student(such as name).

    - Keep track of courses offered, and information about each course (such as pre-requisites).- Schedule of classes, including all information for a class

    o (What are the pieces of information that you want to know for a class?)- Enroll students- Register students for classes- Lookup a student and print his/her information- Lookup a course and print its information- Lookup a class and print its scheduling information- Print a students transcripts- Print a class roster- Print the final grades for students in a class

    Definitions:

  • 7/31/2019 Assignment 7 Design Oop

    2/3

    Course A specific course, such as ITP-100.

    Class A specific scheduled date/time that a Course is being offered, such as ITP-100 Wed 7 PM

    9:40 PM

    Actors: (Who is going to use the system?)

    REGISTRAR STUDENT TEACHER

    Use Cases: (What are the major functions that the Actors want to perform?)

    UPDATE STUDENTS INFO UPDATE COURSE INFO REGISTER CLASSES VIEW LIST OF CLASS VIEW LIST OF COURSES

    Classes: (What are the Classes (nouns) needed for the system?)

    STUDENT COURSE PROFESSOR

    For Each Class, What are the Attributes and associated data types?

    Class A

    o Attribute 1 Class B

    o Attribute 2STUDENT

    NAME - Character String

    poneNumber - Character String

    EMAIL- - Character String

    STUDENTID - integer

    COURSE

    NAME - - Character StringcourseNumber - Integer

    FEE - Real

    PROFESSOR

    NAME - - Character String

    phoneNumber - Character String

    SALARY - Real

  • 7/31/2019 Assignment 7 Design Oop

    3/3

    For Each Class, What are the Methods that are needed?

    Class Ao Method 1

    Class BStudent

    String getName()

    String getphoneNumber()

    String getemail()

    Integer getstudentId()

    Course

    String getName()

    String getcourseNumber()

    Real getfee()

    Professor

    String getName()

    String getphoneNumber()

    Real getsalary()