Question: Include the following details : ( C# program, please remember to include comments in your code) 1. The Hamburger option of the Main Course should
Include the following details : (C# program, please remember to include comments in your code) 1. The Hamburger option of the Main Course should be selected by default.
2. None of the check boxes in the Addons group should be selected by default.
3. Code a method name ClearTotals that clears the three text boxes and a method named ClearAddOns that removes the check marks from the three check boxes.
4. Code an event handler that changes the text thats displayed for the Add-ons group box and the three check boxes when the user selects a different main course( For example, if the user selects Pizza as the main course, then the Add On checkboxes should display Pepperoni, Sausage, and Olives).This event handler should also remove the check marks from the add-ons and clear the order totals.
5. Code an event handler that calculates and displays the subtotal, tax, and order total when the user clicks the Place Order button. The subtotal is the cost of the main course plus the cost of the add-ons. The tax is to be calculated by a method. And the order total is the subtotal plus the tax.
6. Tax should be calculated by a method that should be called by the above event handler. The tax is 7.75% of the subtotal.
7. Code an event handler that clears the order totals when the user checks or unchecks an add-on.
8. In your code, make sure you include validation checks for all entries made through textboxes before calculations.
Create a Windows Forms application that accepts a lunch order from the user and then calculates the order subtotal and total. The main form should be created as below Lunch Order Main course Add-on tems (S.75/each) Lettuce,tomato, and onions o Hamburger-$6.95 Pizza-$5.95 Salad-$4.95 Ketchup, mustard, and mayo French fries Order total Place Order Subtota: $8.45 Tax (775%): $0.65 Order total: $9.10 Ext The application should provide for these main courses and add-ons: Main course Hamburger Price 6.95 Add-on Lettuce, tomato, and onions Ketchup, mustard, and mayo French fries Add-on price .75 Pizza 5.95 Pepperoni Sausage Olives .50 Croutons Bacon bits Bread sticks Salad 4.95 .25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
