Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with C# Lunch Order Application: Create a Windows Forms application that accepts a lunch order from the user and then calculates the order

Please help with C#

Lunch Order Application:

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.

image text in transcribed

Include the following details :

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

a. For example, if the user selects Pizza as the main course, then the Add On checkboxes should display Pepperoni, Sausage, and Olives

b. 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 addons. 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.

PLEASE HELP WITH C#

The application should provide for these main courses and add-ons

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions