Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need answer in C# Form1.Designer.cs namespace LunchOrder { partial class Form1 { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; ///

I need answer in C#

image text in transcribed

Form1.Designer.cs

namespace LunchOrder { partial class Form1 { ///

/// Required designer variable. /// private System.ComponentModel.IContainer components = null;

///

/// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }

#region Windows Form Designer generated code

///

/// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.btnPlaceOrder = new System.Windows.Forms.Button(); this.GroupBox1 = new System.Windows.Forms.GroupBox(); this.lblOrderTotal = new System.Windows.Forms.Label(); this.lblSalesTax = new System.Windows.Forms.Label(); this.lblSubtotal = new System.Windows.Forms.Label(); this.Label3 = new System.Windows.Forms.Label(); this.Label2 = new System.Windows.Forms.Label(); this.Label1 = new System.Windows.Forms.Label(); this.gbxMainCourse = new System.Windows.Forms.GroupBox(); this.btnExit = new System.Windows.Forms.Button(); this.GroupBox1.SuspendLayout(); this.SuspendLayout(); // // btnPlaceOrder // this.btnPlaceOrder.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnPlaceOrder.Location = new System.Drawing.Point(353, 175); this.btnPlaceOrder.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnPlaceOrder.Name = "btnPlaceOrder"; this.btnPlaceOrder.Size = new System.Drawing.Size(117, 28); this.btnPlaceOrder.TabIndex = 17; this.btnPlaceOrder.Text = "Place &Order"; this.btnPlaceOrder.Click += new System.EventHandler(this.btnPlaceOrder_Click); // // GroupBox1 // this.GroupBox1.Controls.Add(this.lblOrderTotal); this.GroupBox1.Controls.Add(this.lblSalesTax); this.GroupBox1.Controls.Add(this.lblSubtotal); this.GroupBox1.Controls.Add(this.Label3); this.GroupBox1.Controls.Add(this.Label2); this.GroupBox1.Controls.Add(this.Label1); this.GroupBox1.Location = new System.Drawing.Point(23, 165); this.GroupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.GroupBox1.Name = "GroupBox1"; this.GroupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); this.GroupBox1.Size = new System.Drawing.Size(299, 128); this.GroupBox1.TabIndex = 21; this.GroupBox1.TabStop = false; this.GroupBox1.Text = "Order total"; // // lblOrderTotal // this.lblOrderTotal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.lblOrderTotal.Location = new System.Drawing.Point(139, 89); this.lblOrderTotal.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblOrderTotal.Name = "lblOrderTotal"; this.lblOrderTotal.Size = new System.Drawing.Size(117, 25); this.lblOrderTotal.TabIndex = 5; this.lblOrderTotal.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblSalesTax // this.lblSalesTax.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.lblSalesTax.Location = new System.Drawing.Point(139, 59); this.lblSalesTax.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblSalesTax.Name = "lblSalesTax"; this.lblSalesTax.Size = new System.Drawing.Size(117, 25); this.lblSalesTax.TabIndex = 4; this.lblSalesTax.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblSubtotal // this.lblSubtotal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.lblSubtotal.Location = new System.Drawing.Point(139, 30); this.lblSubtotal.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblSubtotal.Name = "lblSubtotal"; this.lblSubtotal.Size = new System.Drawing.Size(117, 25); this.lblSubtotal.TabIndex = 3; this.lblSubtotal.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // Label3 // this.Label3.Location = new System.Drawing.Point(21, 89); this.Label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.Label3.Name = "Label3"; this.Label3.Size = new System.Drawing.Size(107, 20); this.Label3.TabIndex = 2; this.Label3.Text = "Order total:"; this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Label2 // this.Label2.Location = new System.Drawing.Point(21, 59); this.Label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.Label2.Name = "Label2"; this.Label2.Size = new System.Drawing.Size(107, 20); this.Label2.TabIndex = 1; this.Label2.Text = "Tax (7.75%):"; this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // Label1 // this.Label1.Location = new System.Drawing.Point(21, 30); this.Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.Label1.Name = "Label1"; this.Label1.Size = new System.Drawing.Size(107, 20); this.Label1.TabIndex = 0; this.Label1.Text = "Subtotal:"; this.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // gbxMainCourse // this.gbxMainCourse.Location = new System.Drawing.Point(23, 17); this.gbxMainCourse.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.gbxMainCourse.Name = "gbxMainCourse"; this.gbxMainCourse.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); this.gbxMainCourse.Size = new System.Drawing.Size(192, 128); this.gbxMainCourse.TabIndex = 19; this.gbxMainCourse.TabStop = false; this.gbxMainCourse.Text = "Main course"; // // btnExit // this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnExit.Location = new System.Drawing.Point(353, 263); this.btnExit.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(117, 28); this.btnExit.TabIndex = 18; this.btnExit.Text = "E&xit"; this.btnExit.Click += new System.EventHandler(this.btnExit_Click); // // Form1 // this.AcceptButton = this.btnPlaceOrder; this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnExit; this.ClientSize = new System.Drawing.Size(503, 309); this.Controls.Add(this.btnPlaceOrder); this.Controls.Add(this.GroupBox1); this.Controls.Add(this.gbxMainCourse); this.Controls.Add(this.btnExit); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Lunch Order"; this.GroupBox1.ResumeLayout(false); this.ResumeLayout(false);

}

#endregion

internal System.Windows.Forms.Button btnPlaceOrder; internal System.Windows.Forms.GroupBox GroupBox1; internal System.Windows.Forms.Label lblOrderTotal; internal System.Windows.Forms.Label lblSalesTax; internal System.Windows.Forms.Label lblSubtotal; internal System.Windows.Forms.Label Label3; internal System.Windows.Forms.Label Label2; internal System.Windows.Forms.Label Label1; internal System.Windows.Forms.GroupBox gbxMainCourse; internal System.Windows.Forms.Button btnExit; } }

Lab 10-2 Process lunch orders 10. 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. In this exercise, you'll complete a form that accepts a lunch order from the user and then calculates the order subtotal and tota 11. Code a method name ClcarTotals that clears the threc text boxes and Lunch Onder a method named ClearAddOns that removes the check marks from the three check boxes. 12. Code an event handler that changes the text that's displayed for the Salod-5455 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 ap- plication to be sure this works correctly Flace Onder 75%) s.es 13. Code an event handler that calculates and displays the subtotal, tax, The application should provide for these main courses and add-ons and order total when the user clicks the Place Order button. The sub- total 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 Main course Price Add-on Add-on price Hamburge .95 Lettuce, tomato, and onions .75 Ketchup, mustard, and mayo French fries 14. Code an event handler that clears the order totals when the user Pizza 5.95Pepperoni .50 checks or unchecks an add-on. Then, test the application one more time Sausage Olives Croutons Bacon bits Bread sticks Salad 4.95 .25 8. Open the LunchOrder project attached on Blackboard 9. 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

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_2

Step: 3

blur-text-image_3

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

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago