Answered step by step
Verified Expert Solution
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
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 s and information
B For the A Video Store problem in Chapters exercises
L M N Kexercises R and Sexercise E and
exercise B:
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.
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
exercises O P and Qexercises T and U
exercise F and exercise C:
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.
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 exercises R
S and Texercises V and Wexercise G and
exercise D:
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.
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 OftheMonthClub problem in Chapters
exercises U V and Wexercises X and Y
exercise H and exercise E:
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.
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?
NameAddress
Employee
Person Person
Employee
NameAddress
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
CarPerson
Person Robot
RobotEmployee
Employee
I. Create a set of inheritance confl icts for the two inheritance structures in the class diagrams of exercise H
Minicases
engineering in the early s He even understands
the advantage of rapid application development. But
the other day, when you and he were talking about
the advantages of objectoriented approaches, he
became totally confused. He thought that characteristics such as polymorphism and inheritance were
an advantage for objectoriented 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.
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 in Chapter
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started