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, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
question
Computers and Technology, 25.06.2019 04:10
While creating a web page, what does each of the following html tags define? 1. 2. 3. 4. a. defines a new paragraph b. defines a term c. defines a single line break d. defines a heading
Answers: 1
question
Computers and Technology, 25.06.2019 08:20
Which of the following statements is true of offshore outsourcing? a. improved telecommunication systems have increased its attractiveness.b. the limited availability of the internet has reduced its effectiveness.c. reduced bandwidth has increased its efficiency to perform with low latency.d. the increased cost of communication has reduced its popularity.
Answers: 1
You know the right answer?
Implementing the decorator design pattern (with strategy pattern and factory class) 150 pts. due sun...
Questions
question
Biology, 06.06.2020 08:57
question
History, 06.06.2020 08:57
question
Mathematics, 06.06.2020 08:57
question
Mathematics, 06.06.2020 08:57
Questions on the website: 13722361