A retailer system manages a number of ProductIF objects for sale. Each ProductIF is either a table or a chair. The same type of product objects, such as tables, are allowed to have a different price tag due to minor cosmetic issues. The way to set the MSRP price for a product is through the setPrice method. There is also a getPrice method to return the MSRP of a product. For the purpose of information hiding and software reuse, the price attribute is preferred to be private but made sharable to all ProductIF objects. Based on the description for the existing code above, you are asked to expand the system for the customer to see MSRP plus tax based on the living state. One major requirement is not to modify the existing code. Conceptually, the new design allows the getPrice method of the customer’s received ProductIF object to show the sum of MSRP and tax from the product of interest and living state. Which design pattern is a good choice for the expansion? (3 pts) Draw the UML class diagram for the whole system design that includes required classes, interfaces, methods, attributes and relationships. (9 pts)
Author: Anonymous
A nurse manager is presenting to a group of unit nurses the…
A nurse manager is presenting to a group of unit nurses the categories regulated under the Controlled Substances Act. Which of the following medication prescriptions should the nurse include under Schedule II?
A client with a long-standing history of heroin abuse has ex…
A client with a long-standing history of heroin abuse has expressed a motivation to stop using heroin permanently. The health care provider has prescribed methadone therapy in addition to a counseling and support program. What statement by the client should the nurse follow up with additional teaching?
A patient with a history of renal insufficiency is prescribe…
A patient with a history of renal insufficiency is prescribed a medication with a narrow therapeutic range. Which concentration levels should the nurse closely monitor to prevent adverse effects and ensure therapeutic effectiveness?
The health care provider has ordered for a client eszopiclon…
The health care provider has ordered for a client eszopiclone 1 mg PO daily as needed. What education should the nurse provide to the client beginning this medication?
The nurse is counseling a patient who has been given a presc…
The nurse is counseling a patient who has been given a prescription for sumatriptan (Imitrex) for migraine headaches. Which of the following statements indicates teaching has been effective?
A nurse is caring for a client with severe rheumatoid arthri…
A nurse is caring for a client with severe rheumatoid arthritis. The health care provider has ordered an anti-inflammatory medication for the client. What should the nurse question if it is ordered?
While studying for the test, the nursing student encounters…
While studying for the test, the nursing student encounters the following drug: papaverine (Pavabid). What does the nursing student identify the name Pavabid as the ______________________?
During a stressful situation, a patient’s body is preparing…
During a stressful situation, a patient’s body is preparing for a potential threat. Which division of the autonomic nervous system is responsible for increasing blood pressure, heart rate, and promoting arousal during this ‘fight-or-flight’ response?
When reviewing pharmacology terms for a group of newly gradu…
When reviewing pharmacology terms for a group of newly graduated nurses, the nurse explains that a drug’s half-life is the time it takes for