The question continues from here, please After lunching the App, the user will need to enter information about each of the vehicles in the garage. This includes entering the lot numbers that identifies a vehicle, the year, and the vehicle make and model, Millage, Engine Capacity and Price, entering information for each extra including ID, Name, Type (interior or Exterior). To conduct a sale the application users selects from among the list of vehicles and extras to add to a receipt. The app must not allow an extra into a receipt until at least one vehicle is inserted. When the a vehicle and extras is inserted into a receipt, the app must calculate: Subtotal: use a function to compute this as the price less the amount of discount (if any) plus the cost of extras (if any). Sales Tax: Regular customers must pay a state sales tax on their purchase. The tax rate is 5% and is computed on the subtotal. Wholesale dealers purchasing a vehicle do NOT pay any sales tax. This must be computed using a function. Total due: This is computed as the subtotal plus the sales tax less the value of the trade-in (if any). Constants: You must declare constants to store the wholesale discount rate, sales tax rate, and cost of exterior and accessory extras, as appropriate. Add remarks to the program as required. Use the Round method as appropriate for calculations. Programming Events. a) Validating Data. You must write code to enforce the business rules listed below All data must be converted to the appropriate data type before and after use. All user inputs must be validate before they are passed to the program. Thus, all data entered into the GUI must first be checked for appropriateness and politely communicate directions to the user in the event the input in not appropriate. All output must be properly formatted The right control/object must be used to design the user interface (GUI) for input and output a) Compute Button Coding. Compute the wholesale discount using the discount rate when the wholesale discount Checkbox is checked; otherwise, the discount is zero. The discount applies to the price only – extras are charged at the full rate. Compute the cost of extras (hint: use a local accumulation variable to accumulate both exterior and accessory extra charges). Compute the subtotal, sales tax, and total due. Accumulate the grand total due (that is the total of all total due values) to a decimal variable. Accumulate a count of the number of vehicles sold to an integer variable. Use MenuStrip, ContextMenuStrip, DataGridView, TabControl controls for full marks. b) Remove Item from Receipt Button Coding. User selects a specific item from receipt click of button/menuitem/contextmenuitem. Clear that item from the receipt Update all output textboxes to reflect the new state of the receipt. c) Clear Receipt Button Coding. Clear all data from the receipt All output textboxes must be set to “0.00”). Uncheck all CheckBox controls d) Print Receipt Button Coding. When the user click on the Print button/menuitem/contextmenuitem, the app will allow him/her to print out the receipt e) Save Receipt Button Coding. When the user click on the save button/menuitem/contextmenuitem, the app will allow him/her to save the receipt to the computer in either MS word or Excel format. f) Totals Button Coding. Display a message box that gives the total due for all sales, number of vehicles sold, and average total due per vehicle sold. g) Exit Button Coding. When the Button is clicked, do not automatically close the form. Instead, write code to only close the form if the application user responds Yes to the question shown in this figure. The code should default the selection to the No button. please the programing language for this work is visual program
The question continues from here, please
- After lunching the App, the user will need to enter information about each of the vehicles in the garage. This includes entering the lot numbers that identifies a vehicle, the year, and the vehicle make and model, Millage, Engine Capacity and Price, entering information for each extra including ID, Name, Type (interior or Exterior).
- To conduct a sale the application users selects from among the list of vehicles and extras to add to a receipt. The app must not allow an extra into a receipt until at least one vehicle is inserted. When the a vehicle and extras is inserted into a receipt, the app must calculate:
- Subtotal: use a function to compute this as the price less the amount of discount (if any) plus the cost of extras (if any).
- Sales Tax: Regular customers must pay a state sales tax on their purchase. The tax rate is 5% and is computed on the subtotal. Wholesale dealers purchasing a vehicle do NOT pay any sales tax. This must be computed using a function.
- Total due: This is computed as the subtotal plus the sales tax less the value of the trade-in (if any).
- Constants: You must declare constants to store the wholesale discount rate, sales tax rate, and cost of exterior and accessory extras, as appropriate.
- Add remarks to the program as required.
- Use the Round method as appropriate for calculations.
Programming Events.
a)
- Validating Data. You must write code to enforce the business rules listed below
- All data must be converted to the appropriate data type before and after use.
- All user inputs must be validate before they are passed to the program. Thus, all data entered into the GUI must first be checked for appropriateness and politely communicate directions to the user in the event the input in not appropriate.
- All output must be properly formatted
- The right control/object must be used to design the user interface (GUI) for input and output
- a) Compute Button Coding.
- Compute the wholesale discount using the discount rate when the wholesale discount Checkbox is checked; otherwise, the discount is zero. The discount applies to the price only – extras are charged at the full rate.
- Compute the cost of extras (hint: use a local accumulation variable to accumulate both exterior and accessory extra charges).
- Compute the subtotal, sales tax, and total due.
- Accumulate the grand total due (that is the total of all total due values) to a decimal variable.
- Accumulate a count of the number of vehicles sold to an integer variable.
- Use MenuStrip, ContextMenuStrip, DataGridView, TabControl controls for full marks.
- b) Remove Item from Receipt Button Coding.
- User selects a specific item from receipt click of button/menuitem/contextmenuitem.
- Clear that item from the receipt
- Update all output textboxes to reflect the new state of the receipt.
- c) Clear Receipt Button Coding.
- Clear all data from the receipt
- All output textboxes must be set to “0.00”).
- Uncheck all CheckBox controls
- d) Print Receipt Button Coding.
When the user click on the Print button/menuitem/contextmenuitem, the app will allow him/her to print out the receipt
- e) Save Receipt Button Coding.
When the user click on the save button/menuitem/contextmenuitem, the app will allow him/her to save the receipt to the computer in either MS word or Excel format.
- f) Totals Button Coding.
Display a message box that gives the total due for all sales, number of vehicles sold, and average total due per vehicle sold.
- g) Exit Button Coding.
When the Button is clicked, do not automatically close the form. Instead, write code to only close the form if the application user responds Yes to the question shown in this figure. The code should default the selection to the No button.
please the programing language for this work is visual programing
Step by step
Solved in 2 steps