Art Show | Course Home | Homework | Labs | Programming | Schedule & Lecture Notes | Submit

Saint Louis University

Computer Science P125
Introduction to Computer Science

Michael Goldwasser

Spring 2005

Dept. of Math & Computer Science

Homework Assignment 01

Object-Oriented Design

Contents:


Overview

Topic: Object-Oriented Design
Related Reading: Ch. 1.4
Due: Monday, 24 January 2005, 12:00pm

When faced with developing a large piece of software, it is quite important to take time to think about the potential design of the software well before you take the time to do the detailed coding. Since we have not yet begun to code this semester, this gives us a great opportunity to work on our ability for abstraction and design. The key to object-oriented design is to identify the relevant data and behaviors which components of the software might support.

Please make sure you adhere to the policies on academic integrity.


Practice Problems


Problems to be Submitted (20 points)

  1. (12 points)

    Consider an automated teller machine (ATM) at a bank. There are many relevant properties in the design of such a system. For example, should there be a per-day maximum imposed on withdrawls made by a given user, and if so what is this limit. Some such properties may only be relevant depending on the role of a particular person who interacts with the machine.

    For this problem, please list at least three distinct properties which are relevant for the following people?

    1. ATM User
    2. ATM repair person
    3. Bank teller
    4. Bank president

    (Note: you cannot use the example we gave about the per-day limit)

  2. (8 points)

    Exercise 1.23 of the text.


Extra Credit

  1. (2 points)

    Exercise 1.26 of the text.


Michael Goldwasser
CS-P125, Spring 2005
Last modified: Thursday, 27 January 2005
Art Show | Course Home | Homework | Labs | Programming | Schedule & Lecture Notes | Submit