Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use (a) - (e) for corresponding patterns on your answer (or scantron) sheet. You may use a design pattern for more than a scenario. (a)

image text in transcribed
Use (a) - (e) for corresponding patterns on your answer (or scantron) sheet. You may use a design pattern for more than a scenario. (a) Abstraction-Occurrence (b) General Hierarchy (c) Player-Role (d) Observer (e) Delegation 21. .................... design pattern is most-suitable for the modeling scenario that follows. Modeling Scenario - You are developing a method to compute employee's net income after taxes (say, in Canada - federal and provincial taxes) and other deductions (e.g., parking) - while the federal tax is the same nationwide, tax percentages differ by province for incomes. Assuming you can reuse the TaxUtility class, whose methods include calculateTaxByProvince(...) that calculates Employee's tax amount from inputs gross income and province. [2 points] 22. .................... design pattern is most-suitable for the modeling scenario that follows. Modeling Scenario - Assuming you are to develop a model for a portfolio managing system monies from each mutual fund is invested in various securities and a security can be stocks, bonds or other mutual funds. [2 points] 23. ..................... design pattern is most-suitable for the modeling scenario that follows. Modeling Scenario - Assuming you are to develop a model for a stock trading platform - while profiting from stock investments is the primary goal, losing is also inovitable. Thus, stock traders are expected to determine profit or loss on stocks rapidly and as soon as there is a drop or rise in prices for risk management purposes. [ 2 points] 24. ...................... design pattern is most-suitable for the modeling scenario that follows. Modeling Scenario - Assuming you are to develop a model for a vehicle dealership system - a car is uniquely identified by its VIN, while the body style, trim level, make and model may be shared among some instance. [ 2 points] 25. .................... design pattern is most-suitable for the modeling scenario that follows. Modeling Scenario - Assuming you are to develop a model for a Computer's file structure. Specifically, in a folder, there may be any number of other folders or files. [2 points]

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

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

Recommended Textbook for

T Sql Window Functions For Data Analysis And Beyond

Authors: Itzik Ben Gan

2nd Edition

0135861446, 978-0135861448

More Books

Students also viewed these Databases questions

Question

What is heritability?

Answered: 1 week ago