Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone help me with my C# questions, Process lunch orders In this exercise,

ID: 3794756 • Letter: C

Question

Can someone help me with my C# questions,

Process lunch orders In this exercise, you’ll complete a form that accepts a lunch order from the user and then calculates the order subtotal and total.

1. Open the LunchOrder project in the Extra ExercisesChapter 10LunchOrder directory. 2. Add three radio buttons to the Main Course group box, and set their properties so they appear as shown above. The Hamburger option should be selected by default. 3. Add a group box for the add-on items. Then, add three check boxes to this group box as shown above. None of the check boxes should be selected by default. 4. 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. 5. Code an event handler that changes the text that’s displayed for the Add-ons group box and the three check boxes when the user selects a different main course. This event handler should also remove the check marks from the add-ons and clear the order totals. Test the application to be sure this works correctly. 6. 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 7.75% of the subtotal. And the order total is the subtotal plus the tax. Test the application to be sure this works correctly. 7. Code an event handler that clears the order totals when the user checks or unchecks an add-on. Then, test the application one more time.

The original code is given by

namespace LunchOrder
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnExit_Click(object sender, EventArgs e)
{
Close();
}

private void gbxMainCourse_Enter(object sender, EventArgs e)
{

}

private void lblSubtotal_Click(object sender, EventArgs e)
{

}

private void lblSalesTax_Click(object sender, EventArgs e)
{

}

private void lblOrderTotal_Click(object sender, EventArgs e)
{

}

private void btnPlaceOrder_Click(object sender, EventArgs e)
{

}
}
}

Thank you

Lunch Order Man course a Hambuger 36.95 Lettfuce tomato, and oniore Plaza,S595 O Salad-$4 95 Kattchup. muatard and mayo Order total Place ürder Subtotal Tax (775 $8 45 $065 $9 10 Order total: The application should provide for these main courses and add-ons Price 6.95 Add-on price 75 Main course Add-on Lettuce, tomato, and onions Ketchup, mustard, and mayo French fries Hamburger 5.95 Pepperoni Sausage Olives zza Salad 4.95 .25 Croutons Bacon bits Bread sticks

Explanation / Answer

private void ClearAddOns(Control.ControlCollection MMC)

6)

{

public checkbox dynamicchkb1=new checkbox();

public checkbox dynamicchkb2=new checkbox();

public checkbox dynamicchkb3=new checkbox();

public button btnPlaceOrder=new button();

}

}

}

}

}

6)

private void btnPlaceOrder_Click(object sender, EventArgs e)
{

subtotal=subtotal+addon;//subtotal and addon to be calculated by eventhandlers needed to be coded.

tax=0.0775*subtotal;

total=subtotal+tax;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote