Docsity

Object Oriented Design - Midterm Exam Notes | SENG 550, Exams of Engineering

Toggle sidebar
bg1
Object Oriented Design Mid Term Edgell
WVU Software Engineering 12/04/20
Fall 2016
All information that you provide as an answer will be graded.
Given the following questions provide clear unambiguous answers. Be sure to answer the entire question.
Carefully consider alternatives and justify your answers. Precise answers are expected.
You may use your book, notes, other books, notes, and any other resources available to you. The only
resource that may not be used is people. YOU ARE NOT TO DISCUSS THIS TEST WITH ANYONE
UNTIL IT HAS BEEN TURNED IN. PLACE YOUR NAME IN THE CONTENT OF THE EXAM
AND THE FILENAME.
1) (10 points) Identify the difference between composition and aggregation. When should you use
one versus the other?
2) (10 points) What makes the software design and development process so complex? How does the
object oriented paradigm help in overcoming or minimizing each of these issues?
3) (10 points) Name and describe the types of relationships among classes that must be identified in
building a class model.
4) (10 points) There are four basic categories associated to abstraction. What is the basic concept
associated with each technique? Which technique should we strive for in design?
5) (10 points) Draw the class diagram to represent the following structure.
A person must be either male or female. (only 1 with no change)
A person can be a manager, engineer, consultant, administrative support, or an executive (changes
allowed via promotion)
If the person is a manager they must be either a sales manager or a technical manager (may change
but can only be one)
If the person is a technical manager they must be an R&D manager, maintenance manager,
development manager, or testing manager
If the person is a testing manager they must be either a system or integration testing manager (only
1, changes allowed)
If the person is a sales manager they must be either a commercial or government sales manager
(only 1, changes allowed)
If the person is an engineer they must be development, maintenance, test, or R &D (only 1,
changes allowed)
If the person is a consultant they are either short-tern or long-term. (short-term can convert to
long-term and long-term can convert to short-term)
6) (10points) For what purpose should the CRC method be used? When should a transition be
made from the CRC method to some other method and why?
7) (10 points) In the object model, what characteristic/attribute is the most important and why?
8) (15 points) Your goal is to construct the CRC cards for the classic game battleship. (Reference
https://en.wikipedia.org/wiki/Battleship_(game) if you need the details of how the game is played
and rules).
The following additions are to be made in your consideration of this task:
1. An administrator can define the configuration of the game based on the playing grid size (per
player) and the number and size of the ships. Only 2 players can play at any time. This can be 2
people or one against the computer. You can assume online play is the way the game will be
delivered with 2 remote people playing each other or one against the computer.
Page 1
pf3

Partial preview of the text

Download Object Oriented Design - Midterm Exam Notes | SENG 550 and more Exams Engineering in PDF only on Docsity!

WVU Software Engineering 12/04/ Fall 2016 All information that you provide as an answer will be graded. Given the following questions provide clear unambiguous answers. Be sure to answer the entire question. Carefully consider alternatives and justify your answers. Precise answers are expected. You may use your book, notes, other books, notes, and any other resources available to you. The only resource that may not be used is people. **YOU ARE NOT TO DISCUSS THIS TEST WITH ANYONE UNTIL IT HAS BEEN TURNED IN. PLACE YOUR NAME IN THE CONTENT OF THE EXAM AND THE FILENAME.

  1. (10 points) Identify the difference between composition and aggregation. When should you use one versus the other?
  2. (10 points) What makes the software design and development process so complex? How does the object oriented paradigm help in overcoming or minimizing each of these issues?
  3. (10 points) Name and describe the types of relationships among classes that must be identified in building a class model.
  4. (10 points) There are four basic categories associated to abstraction. What is the basic concept associated with each technique? Which technique should we strive for in design?
  5. (10 points) Draw the class diagram to represent the following structure**.  A person must be either male or female. (only 1 with no change)  A person can be a manager, engineer, consultant, administrative support, or an executive (changes allowed via promotion)  If the person is a manager they must be either a sales manager or a technical manager (may change but can only be one)  If the person is a technical manager they must be an R&D manager, maintenance manager, development manager, or testing manager  If the person is a testing manager they must be either a system or integration testing manager (only 1, changes allowed)  If the person is a sales manager they must be either a commercial or government sales manager (only 1, changes allowed)  If the person is an engineer they must be development, maintenance, test, or R &D (only 1, changes allowed)  If the person is a consultant they are either short-tern or long-term. (short-term can convert to long-term and long-term can convert to short-term) **6) (10points) For what purpose should the CRC method be used? When should a transition be made from the CRC method to some other method and why?
  6. (10 points) In the object model, what characteristic/attribute is the most important and why?**
  7. (15 points) Your goal is to construct the CRC cards for the classic game battleship. (Reference https://en.wikipedia.org/wiki/Battleship_(game) if you need the details of how the game is played and rules). The following additions are to be made in your consideration of this task:
  1. An administrator can define the configuration of the game based on the playing grid size (per player) and the number and size of the ships. Only 2 players can play at any time. This can be 2 people or one against the computer. You can assume online play is the way the game will be delivered with 2 remote people playing each other or one against the computer.

WVU Software Engineering 12/04/ Fall 2016

  1. If you take administrative control of a game, you define the game to be played (grid size and number of ships). Once a game is defined, it may be saved and named to be used again.
  2. A player may select the classic version of the game to play or a predefined version built by an administrator from a game format library. Once selecting a game, the player may choose to play alone or against another player. If against another player, the system will attempt to pair an opponent with the same game format request. The player will wait until a match is found. If after 2 minutes there is no match, the system will suggest playing alone. The user may choose to play alone or continue to wait for another 2 minutes. All ships must be placed on the playing surface either on the vertical or horizontal before play begins. All the other rules of the classic game apply. The game randomly determines who goes first and then is turn-based. The game also identifies hits, misses, sunken ships, and game victory. 9) (15 points) We have been tasked to build an application for a library. Below is the list of requirements and use case that describes the proposed system. The system will be to support librarian activities of a local library. The following list of requirements have been determined:  It is a support system for a library  The library lends books and magazines to borrowers, who are registered in the system, as are the books and magazines.  The library handles the purchase of new titles for the library. Popular titles are bought in multiple copies. Old books and magazines are removed when they are out of date or in poor condition.  The librarian is an employee of the library who interacts with the customers (borrowers) and whose work is supported by the system.  A borrower can reserve a book or magazine that is not currently available in the library, so that when it is returned or purchased by the library, that person is notified. The reservation is cancelled when the borrower checks out the book or magazine or through an explicit cancellation procedure.  The library can easily create, update, and delete information about titles, borrowers, loans, and reservations in the system.  The system should be easy to extend with new functionality. Produce a UML class diagram that represents the classes and relationships required for this application (be sure to label relationships and identify cardinality where appropriate).