subject

Implementing the decorator design pattern (with strategy pattern and factory class) 150 pts. due sunday, april 28th (by 11: 59pm) problem you are to design and implement code based on the decorator, strategy and factory class design patterns for generating appropriate receiptsfor customers buying items at a particular best buy store location. the general format of a receipt is as follows: basic receipt store header (store street address, state code, zipcode, phone number, store number) date of sale itemized purchases total sale (without sales tax) amount due (with added sales tax) dynamically-added items tax computation object (based on state that store residing in) optional secondary heading, e. g., βˆ’ "happy holidays from best buy" βˆ’ "summer sales are hot at best buy" optional items printed at the end of the receipt: βˆ’ relevant rebate forms βˆ’ promotional coupons (e. g., "10% off next purchase") approach we will assume that the code is written as part of the software used by all best buy stores around the country. therefore, the information in the store header will vary depending on the particular store's location. this information will be stored in a configuration file and read at startup of the system. in addition, the amount of sales tax (if any) is determined by the state that the store resides in. the calculation of tax will be implemented by use of the strategy design pattern. the possible added items to be displayed at the end of each receipt (i. e., rebates and promotional coupons) will be handled by use of the decorator and factory class design patterns. basic receipt the information for the basic receiptshould be stored in a basicreceipt object (see below). a basicreceipt should contain the store header information, date of sale, purchased items, the total sale (without tax,) and the amount due (with added tax). in addition, following the strategy design pattern, there should be an instance variable of (interface) type taxcomputationmethod that can be assigned the appropriate t ax computation object for the state that the store resides in. (for tax purposes, everything purchased from best buy is in the category "computer or computer accessory.")

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:30
You picked the corridor which led you here. if the guards find you, they're going to be really angry! what is the synonym of angry
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
question
Computers and Technology, 24.06.2019 12:10
What is it called during the editing process when the processor ensures that a character holding a coffee mug from one angle is holding the same mug in the same way when the shot switches to another camera at another angle? cinematography continuity technology prop use
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
The ratio of men to women in a certain factory is 3 to 4 .there are 210 men.how many workers are there?
Answers: 2
You know the right answer?
Implementing the decorator design pattern (with strategy pattern and factory class) 150 pts. due sun...
Questions
question
English, 17.10.2020 14:01
question
Spanish, 17.10.2020 14:01
question
Mathematics, 17.10.2020 14:01
Questions on the website: 13722362