CSC2407 Introduction to Software Engineering
 
Maths&Comp Home
CSC2407 Home
Course specifications
Mailing list
Lecture Slides
Tutorials
Submit Assignment
Assignment Feedback
Results Summary
 
 
 
 

Tutorial exercises - Modelling 2

  1. Study book Q3.2.

    Draw a class diagram for a simple bank. A bank has many branches. A customer can open an account at a branch. Joint accounts are possible. Two kinds of accounts are available: a savings account and a cheque account. Don't add attributes or operations to the classes.

  2. Study book Q3.4.

    Imagine that you are required to develop a retail business application. The application must deal with sales of items to customers and with ordering of stock items when necessary. You'll need to consider cases like

    • customer buys item(s)
    • item(s) are ordered from supplier
    • who supplies item X?
    • which supplier should I order from (if more than one)?
    Develop a preliminary class model. Define classes associations and a initial set of attributes. Add multiplicity annotations to associations. Choose meaningful names for all elements. Don't add operations.
  3. Study book Q3.5.

    Create an object relationship model for Hire-all, a vehicle hire company. Show class and association names, multiplicity, and major operations and attributes. Hire-all hires vehicles at a number of locations across the country. Hire-all hires cars and and pantech (enclosed body) trucks. A customer can pick up a vehicle at one location and return it to another. Your model should allow the following scenarios to be handled:

    • Customer hires a vehicle.
    • Customer returns a vehicle.
    • Query: which vehicles are at a particular location?
    • Query: what is the status of a particular vehicle?
    • Query: to which location is the customer going to return the vehicle?
  4. Study book Q3.14, 3.15

    The answers to these are at the end of the study book.

 
  http://www.sci.usq.edu.au/courses/CSC2407/model2.html      Last modified: Mon Sep 8 14:25:13 2008 EST      Contact