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 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
You know the right answer?
Implementing the decorator design pattern (with strategy pattern and factory class) 150 pts. due sun...
Questions
question
Mathematics, 05.11.2020 08:40
question
English, 05.11.2020 08:40
question
Mathematics, 05.11.2020 08:40