Create the OIP/OEA documents and develop an application that allows MW AutoRamma to determine the amount due for the purchase of a vehicle. The sales person should be allowed to enter the base price and the trade-in allowance. Check boxes will indicate the additional accessories the buyer desires: Stereo System ($525.75), Leather Interior ($1,100.00), and/or Computer Navigation System ($1,200.00). Radio buttons will be used to select the type of exterior finish desired: Standard (no additional charge), Pearlized ($400.00), or Customized detailing ($699.00). When a check box or radio button is clicked, update the Accessories & Finish value.

The base price must be at least $5000 and less than $100,000. The trade-in allowance may be $0 (no trade-in) or less than $10,000 and less than the car selling price. If no trade-in then display 0.00. Use TryParse for validation of input.

Include the following buttons: Calculate, Clear, Modify, Summary, and Exit. When the Calculate button is clicked, determine the selling price, sales tax (8%), total and amount due. The Selling Price is the sum of the car base price and the accessories & finish amount. Sales tax is calculated on the selling price. The total due is the sum of the selling price and sales tax. The amount due is the total less the trade-in allowance. All input, radio buttons and check boxes are to be locked down.

When the Modify button is clicked, open the form for modifications by the user and force the user to re-Calculate.

When the Clear button is clicked, determine if the car was actually sold or not. If the car was not sold verify clearing of values before clearing them.

If the car was sold, then accumulate the following totals:

  • Total of Selling prices
  • Total trade-ins
  • Total amounts due
  • Number of cars sold
  • Total number of trade-ins
  • Average trade-in

The summary button should display the totals in a message box. When the user exits the program, display the totals again.

Use named constants for all fixed values. Do not allow the program to exit in the middle of a transaction. A transaction ends when the current values are cleared.

Use the following as a guide: see image.

Extra Credit:

After the Calculate button is clicked, the accessories & finish amount must respond dynamically to changes made in the Accessories or Exterior Finish and all items must be re-calculated. The Calculate button will not become active until the values are cleared or the Modify button is clicked.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.