reate a "class" named Sale. The Sale class must have properties for each of the purchase options, e.g.: stereo system, leather interior, computer navigation, standard, pearlized, and customized detailing. The Sale class must also have properties that will store the values that are typed into the two text boxes (car sales price and trade-in allowance).
• Separate the logic for processing sales from the form code by using methods in the Sale class. The Sale class must have a method (function) for each of the following:
1. to compute the cost of the accessories & finish,
2. to compute the sales tax,
3. to compute the subtotal, and
4. to compute the amount due.
• Accessories and Car Exterior Finish options are priced as shown in this table. These values should be given appropriate names and stored as module-level constant values in the Sale class or program (your option on how you set this up).
Accessory Price Finish Price
Stereo System $425.76 Standard No additional charge
Leather Interior $987.41 Pearlized $345.72
Computer Navigation $1,741.23 Customized Detailing $599.99
Anyone know how I'd go about doing that?