Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Your boss has been in the soft ware development fi eld for thirty years. He has always prided himself on his ability to

1. Your boss has been in the soft ware development
fi eld for thirty years. He has always prided himself
on his ability to adapt his skills from one approach
to developing soft ware to the next approach. For
example, he had no problem learning structured
analysis and design in the early 1980s and information
B. For the A Video Store problem in Chapters 4(exercises
L, M, N K),5(exercises R and S),6(exercise E), and 7
(exercise B):
1. Choose one of the classes and create a set of invariants for attributes and relationships and add them to
the CRC card for the class.
2. Choose one of the methods in the class that you
chose and create a contract and a method specifi cation for it. Use OCL to specify any pre- or
postcondition and use both Structured English and
an activity diagram to specify the algorithm.
C. For the gym membership problem in Chapters 4
(exercises O, P, and Q),5(exercises T and U),6
(exercise F), and 7(exercise C):
1. Choose one of the classes and create a set of invariants for attributes and relationships and add them to
the CRC card for the class.
2. Choose one of the methods in the class that you
chose and create a contract and a method specification for it. Use OCL to specify any pre- or
postcondition and use both Structured English
and an activity diagram to specify the algorithm.
D. For the Picnics R Us problem in Chapters 4(exercises R,
S, and T),5(exercises V and W),6(exercise G), and 7
(exercise D):
1. Choose one of the classes and create a set of invariants for attributes and relationships and add them to
the CRC card for the class.
2. Choose one of the methods in the class that you
chose and create a contract and a method specifi -
cation for it. Use OCL to specify any pre- or postcondition and use both Structured English and an
activity diagram to specify the algorithm.
E. For the Of-the-Month-Club problem in Chapters 4
(exercises U, V, and W),5(exercises X and Y),6
(exercise H), and 7(exercise E):
1. Choose one of the classes and create a set of invariants for attributes and relationships and add them to
the CRC card for the class.
2. Choose one of the methods in the class that you chose
and create a contract and a method specifi cation for
it. Use OCL to specify any pre- or postcondition and
use both Structured English and an activity diagram
to specify the algorithm.
F. Describe the diff erence in meaning between the following two class diagrams. Which is a better model? Why?
Name-Address
Employee
Person Person
Employee
Name-Address
0..*1..1
G. From a cohesion, coupling, and connascence perspective, is the following class diagram a good model? Why
or why not?
Customer
Credit Customer Cash Customer Check Customer
Person
H. From a cohesion, coupling, and connascence perspective, are the following class diagrams good models?
Why or why not?
Car
Car-Person
Person Robot
Robot-Employee
Employee
I. Create a set of inheritance confl icts for the two inheritance structures in the class diagrams of exercise H.
Minicases 325
engineering in the early 1990s. He even understands
the advantage of rapid application development. But
the other day, when you and he were talking about
the advantages of object-oriented approaches, he
became totally confused. He thought that characteristics such as polymorphism and inheritance were
an advantage for object-oriented systems. However,
when you explained the problems with inheritance
confl icts, redefi nition capabilities, and the need for
semantic consistency across diff erent implementations of methods, he was ready to simply give up. To
make matters worse, you then went on to explain the
importance of contracts in controlling the development of the system. At this point in the conservation,
he basically threw in the towel. As he walked off , you
heard him say something like I guess its true, its too
hard to teach an old dog new tricks.
Being a loyal employee and friend, you decided
to write a short tutorial to give your boss on objectoriented systems development. As a fi rst step, create a
detailed outline for the tutorial. As a subtle example,
use good design criteria, such as coupling and cohesion, in the design of your tutorial outline.
2. You have been working with the professional and scientifi c management (PSSM) problem for quite a while.
You should go back and refresh your memory about
the problem before attempting to solve this situation.
Refer back to your solutions to Minicase 3 in Chapter 7.
a. For each class in the structural model, using OCL,
create a set of invariants for attributes and relationships and add them to the CRC cards for the classes.
b. Choose one of the classes in the structural model.
Create a contract for each method in that class. Be
sure to use OCL to specify the preconditions and
the postconditions. Be as complete as possible.
c. Create a method specifi cation for each method
in the class you chose I want the answers in detials and draw diagrams if questions need please?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions