Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help with answering H. from Systems Analysis & Design ants for attributes

ID: 3706727 • Letter: P

Question

Please help with answering H. from Systems Analysis & Design

ants for attributes and relationships and the CRC cand for the class to oriented systems develo 2. Choose one of the methods in the class that you detailed outline for the ood design criteria, n, in the design of you You have been working entific management (PSS You should go back an the problem before att Refer back to your solu a. For each class in t create a set of inva ships and add the b. Choose one of t Create a contra sure to use OC the postcondit c. Create a met chose and create a contract and a method spec or use g iication for it. Use OCL to specity any pre postcondition and use both and an activity diagram to specity the algorithm. r the Picnics R Us problem in Chapters und T), 5 (exercises V and w). 6 lexercise G), and rcise D): R. 4 (exer Check Customer Cash Customer Credit Customer hoose one of the classes and create a set of invari s for attributes and relationships and add them to CRC card for the class ose one of the methods in the class that you H. From a cohesion, coupling, and connascence contract and a method specif tive, are the following class diagrams o and create a on and use both Structured English and an the-Month-Club problem in Chapters 4 to specify any pre- or post Why or why not? Car Employee diagram to specify the algorithm V, and W), 5 (exercises X and Y), 6 nd 7 (exercise E): of the classes and create a set of invari butes and relationships and add them to for the class the methods in the class that you chose I. Create a set of inheritance conflicts for the two inher- ntract and a method specification for itance structures in the class diagrams of exercise H. in the class Structured E Car-Person Robot-Employee algorithm sp 3. You have bee Vehicle proble and refresh y attempting to solutions Mi

Explanation / Answer

The displayed class diagrams are good models when being looked from a cohesive, coupled and connascence perspective. When we say cohesive, we are referring to modularity of the classes or models, i.e. they can work independently without being dependenct on another module. This may represent method cohesion, class coehsion and Generalisation/specialisation cohesion. When we say coupling, we refer to an environment where here is interdependency between the the modules which majorly happens through message passing. An ideal coupling environement is when there is not direct couipling between the modules and interaction happens only by passing messages. Connascence referes to an environment when there becomes a need to change a module because of change in another module. This can be of various types based on name, class, convention, algorithm, etc. In an ideal environment, there should be minimum connascence.

In the above diagram, the classes Person, Car, Employee and Robot are completely independent so there represent good cohesive environment and change in any of these classes will not lead to making changes in any of the other classes, so there is minimum connascence. When it comes to the subclasses - Car-Person and Robot-Employee, they inherit Car and Person; and Employee and Robot classes respectively, so they are dependent on their parent classes and may interact with them by direct coupling. Direct coupling should be avoided in an ideal scenario and composition should be preferred over Inheritance. Depending on the changes made and the usage in the parent classes, you may or may not require to change the sub classes representing a connascence environment.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote