Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve it Exercise: Improving cohesion and reducing coupling Objective: Refactor a design to improve cohesion and coupling. Exercise scoring This exercise is worth a

Please solve it image text in transcribed
Exercise: Improving cohesion and reducing coupling Objective: Refactor a design to improve cohesion and coupling. Exercise scoring This exercise is worth a total of 5 points. Instructions Below you will find definitions for the show and Promotion objects. Included in both of these definitions is the purpose for the object, as well as a list of the responsibilities assigned to that object. Reassign the responsibilities to support the best reuse and division of labor among the objects. It may require you to create new classes or simply redistribute responsibilities. Remember to apply the principles of cohesion and coupling to arrive at the best configuration. Initial Definition Show 1. Purpose: Define a single presentation of an event. 2. Responsibility: Set the date and time of the performance. Show promotion 1. Purpose: Define the pricing strategy for a show. 2. Responsibility: Define the price tiers that will be offered in the show. Set the minimum and maximum number of seats that should be assigned to each price tier. Define the discounts that will be offered. Set the maximum number of seats that an individual customer can purchase (prevent ticket scalping). Terminology 1. Price tier: A set of price types and prices applied to a section of seats. For example, good seats might go for $50 for adults and $25 for children (one price tier), while balcony seats might sell for $20 for adults and S10 for children (another price tier). 2. Discount: A percentage reduction in the sale price based on either the number of tickets purchased or the total value of the tickets purchased

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Guidelines For Auditing Process Safety Management Systems

Authors: CCPS Center For Chemical Process Safety

2nd Edition

0470282355, 978-0470282359

More Books

Students also viewed these Accounting questions

Question

Question 5) Let n = N and Y Answered: 1 week ago

Answered: 1 week ago

Question

7. Define cultural space.

Answered: 1 week ago

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago