The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 337 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Build a Decision Table for the getDiscount( ) method that calculates the discount for a Big Box Warehouse store based on the following description:
A minimum 5 percent discount applies to all purchases. If the retailer maintains an average monthly purchase volume of at least $100,000, a 15 percent discount applies, provided the retailer is a club member. When the retailer's purchase volume is under $100,000, the discount is 12 percent for club members and 7 percent for non-club members. Retailers who are not club members, but who maintain a $100,000 monthly purchase volume, qualify for a 10 percent discount, unless their purchase totals less than $35,000.
Provide a implementation of the getDiscount( ) method using selection statements and another version without the selection statements. Please note, I am not expecting you to be writing a complete compliable program just the method implementation in any language of your choice.
Hint: Start by identifying the different conditions and if necessary, assign a single character identifier to each possibility. Next identify the actions.
Once you build the decision table, analyze the decision table and see if there are any discrepancies in terms of fairness on the discounts that are applied.
----------- ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly