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, 22.06.2019 10:30
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
question
Computers and Technology, 22.06.2019 10:30
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
question
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
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, 15.10.2019 09:50
Questions on the website: 13722367