Computers and Technology

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.")

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:30, Nathaliasmiles
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
image
Computers and Technology, 23.06.2019 00:30, lilobekker5219
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
image
Computers and Technology, 23.06.2019 04:31, tbt81
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
image
Computers and Technology, 24.06.2019 02:30, Esmail
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
Do you know the correct answer?
Implementing the decorator design pattern (with strategy pattern and factory class) 150 pts. due sun...

Questions in other subjects: