Question: Create a project that determines the total amount due for the purchase of a vehicle. Include text boxes for the base price and the trade
Create a project that determines the total amount due for the purchase of a vehicle. Include text boxes for the base price and the trade in allowance. Check boxes will indicate if the buyer wants additional accessories, look at the table.
Have the trade in allowance default to zero; that is, if the user does not enter any value use zero for the calculation. Validate the values from the text boxes, displaying a message box if necessary.
To calculate add the base price and display the result in a label called SubTotal. Calculate the sale tax (do the calculation of the sales tax using a method) on the subtotal and display the result in a Total label. Then subtract any trade-in value from the total and display the result in an Amount Due label.
| Item | Price |
| Stereo System | 425.76 |
| Leather Interior | 987.41 |
| Computer Navigation | 1,741.23 |
| Standard | No additional charge |
| Pearlize | 345.72 |
| Customized Detailing | 599.99 |
| Tax Rate | 8% |
Instead of buttons use menu commands an add a keyboard shortcut for every menu command. Like this:
Menu
File Edit Help
Exit Calculate About
Clear
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
