Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with a Lunch Order Project! Please Help!! These are the requirements: This is the designer I have so far: { partial class

I need help with a Lunch Order Project! Please Help!! These are the requirements:

image text in transcribed

image text in transcribedimage text in transcribed

This is the designer I have so far:

{ 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.Orderbtn = new System.Windows.Forms.Button(); this.Exitbtn = new System.Windows.Forms.Button(); this.subtotallbl = new System.Windows.Forms.Label(); this.taxlbl = new System.Windows.Forms.Label(); this.ordertotallbl = new System.Windows.Forms.Label(); this.hamburgerbtn = new System.Windows.Forms.RadioButton(); this.pizzabtn = new System.Windows.Forms.RadioButton(); this.saladbtn = new System.Windows.Forms.RadioButton(); this.addon1chk = new System.Windows.Forms.CheckBox(); this.addon2chk = new System.Windows.Forms.CheckBox(); this.addon3chk = new System.Windows.Forms.CheckBox(); this.subtotaltxt = new System.Windows.Forms.TextBox(); this.tabtxt = new System.Windows.Forms.TextBox(); this.ordertotaltxt = new System.Windows.Forms.TextBox(); this.MainCourseBox = new System.Windows.Forms.GroupBox(); this.AddonItemsBox = new System.Windows.Forms.GroupBox(); this.OrderTotalBox = new System.Windows.Forms.GroupBox(); this.Clearbtn = new System.Windows.Forms.Button(); this.MainCourseBox.SuspendLayout(); this.AddonItemsBox.SuspendLayout(); this.OrderTotalBox.SuspendLayout(); this.SuspendLayout(); // // Orderbtn // this.Orderbtn.ForeColor = System.Drawing.SystemColors.ControlText; this.Orderbtn.Location = new System.Drawing.Point(726, 349); this.Orderbtn.Name = "Orderbtn"; this.Orderbtn.Size = new System.Drawing.Size(241, 70); this.Orderbtn.TabIndex = 0; this.Orderbtn.Text = "Place &Order"; this.Orderbtn.UseVisualStyleBackColor = true; // // Exitbtn // this.Exitbtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.Exitbtn.Location = new System.Drawing.Point(726, 536); this.Exitbtn.Name = "Exitbtn"; this.Exitbtn.Size = new System.Drawing.Size(241, 70); this.Exitbtn.TabIndex = 1; this.Exitbtn.Text = "E&xit"; this.Exitbtn.UseVisualStyleBackColor = true; // // subtotallbl // this.subtotallbl.AutoSize = true; this.subtotallbl.Location = new System.Drawing.Point(50, 38); this.subtotallbl.Name = "subtotallbl"; this.subtotallbl.Size = new System.Drawing.Size(129, 32); this.subtotallbl.TabIndex = 11; this.subtotallbl.Text = "Subtotal:"; // // taxlbl // this.taxlbl.AutoSize = true; this.taxlbl.Location = new System.Drawing.Point(10, 98); this.taxlbl.Name = "taxlbl"; this.taxlbl.Size = new System.Drawing.Size(169, 32); this.taxlbl.TabIndex = 12; this.taxlbl.Text = "Tax(7.75%):"; // // ordertotallbl // this.ordertotallbl.AutoSize = true; this.ordertotallbl.Location = new System.Drawing.Point(22, 161); this.ordertotallbl.Name = "ordertotallbl"; this.ordertotallbl.Size = new System.Drawing.Size(157, 32); this.ordertotallbl.TabIndex = 13; this.ordertotallbl.Text = "Order total:"; // // hamburgerbtn // this.hamburgerbtn.AutoSize = true; this.hamburgerbtn.Location = new System.Drawing.Point(1, 46); this.hamburgerbtn.Name = "hamburgerbtn"; this.hamburgerbtn.Size = new System.Drawing.Size(288, 36); this.hamburgerbtn.TabIndex = 14; this.hamburgerbtn.TabStop = true; this.hamburgerbtn.Text = "Hamburger - $6.95"; this.hamburgerbtn.UseVisualStyleBackColor = true; // // pizzabtn // this.pizzabtn.AutoSize = true; this.pizzabtn.Location = new System.Drawing.Point(1, 115); this.pizzabtn.Name = "pizzabtn"; this.pizzabtn.Size = new System.Drawing.Size(217, 36); this.pizzabtn.TabIndex = 15; this.pizzabtn.TabStop = true; this.pizzabtn.Text = "Pizza - $5.95"; this.pizzabtn.UseVisualStyleBackColor = true; // // saladbtn // this.saladbtn.AutoSize = true; this.saladbtn.Location = new System.Drawing.Point(1, 184); this.saladbtn.Name = "saladbtn"; this.saladbtn.Size = new System.Drawing.Size(221, 36); this.saladbtn.TabIndex = 16; this.saladbtn.TabStop = true; this.saladbtn.Text = "Salad - $4.95"; this.saladbtn.UseVisualStyleBackColor = true; // // addon1chk // this.addon1chk.AutoSize = true; this.addon1chk.Location = new System.Drawing.Point(7, 61); this.addon1chk.Name = "addon1chk"; this.addon1chk.Size = new System.Drawing.Size(34, 33); this.addon1chk.TabIndex = 17; this.addon1chk.UseVisualStyleBackColor = true; // // addon2chk // this.addon2chk.AutoSize = true; this.addon2chk.Location = new System.Drawing.Point(7, 130); this.addon2chk.Name = "addon2chk"; this.addon2chk.Size = new System.Drawing.Size(34, 33); this.addon2chk.TabIndex = 18; this.addon2chk.UseVisualStyleBackColor = true; // // addon3chk // this.addon3chk.AutoSize = true; this.addon3chk.Location = new System.Drawing.Point(7, 199); this.addon3chk.Name = "addon3chk"; this.addon3chk.Size = new System.Drawing.Size(34, 33); this.addon3chk.TabIndex = 19; this.addon3chk.UseVisualStyleBackColor = true; // // subtotaltxt // this.subtotaltxt.Location = new System.Drawing.Point(230, 38); this.subtotaltxt.Name = "subtotaltxt"; this.subtotaltxt.ReadOnly = true; this.subtotaltxt.Size = new System.Drawing.Size(238, 38); this.subtotaltxt.TabIndex = 20; // // tabtxt // this.tabtxt.Location = new System.Drawing.Point(230, 98); this.tabtxt.Name = "tabtxt"; this.tabtxt.ReadOnly = true; this.tabtxt.Size = new System.Drawing.Size(238, 38); this.tabtxt.TabIndex = 21; // // ordertotaltxt // this.ordertotaltxt.Location = new System.Drawing.Point(230, 155); this.ordertotaltxt.Name = "ordertotaltxt"; this.ordertotaltxt.ReadOnly = true; this.ordertotaltxt.Size = new System.Drawing.Size(238, 38); this.ordertotaltxt.TabIndex = 22; // // MainCourseBox // this.MainCourseBox.Controls.Add(this.saladbtn); this.MainCourseBox.Controls.Add(this.pizzabtn); this.MainCourseBox.Controls.Add(this.hamburgerbtn); this.MainCourseBox.Location = new System.Drawing.Point(41, 43); this.MainCourseBox.Name = "MainCourseBox"; this.MainCourseBox.Size = new System.Drawing.Size(390, 280); this.MainCourseBox.TabIndex = 23; this.MainCourseBox.TabStop = false; this.MainCourseBox.Text = "Main course"; // // AddonItemsBox // this.AddonItemsBox.Controls.Add(this.addon3chk); this.AddonItemsBox.Controls.Add(this.addon2chk); this.AddonItemsBox.Controls.Add(this.addon1chk); this.AddonItemsBox.Location = new System.Drawing.Point(451, 43); this.AddonItemsBox.Name = "AddonItemsBox"; this.AddonItemsBox.Size = new System.Drawing.Size(462, 279); this.AddonItemsBox.TabIndex = 24; this.AddonItemsBox.TabStop = false; this.AddonItemsBox.Enter += new System.EventHandler(this.AddonItemsBox_Enter); // // OrderTotalBox // this.OrderTotalBox.Controls.Add(this.ordertotaltxt); this.OrderTotalBox.Controls.Add(this.tabtxt); this.OrderTotalBox.Controls.Add(this.subtotaltxt); this.OrderTotalBox.Controls.Add(this.ordertotallbl); this.OrderTotalBox.Controls.Add(this.taxlbl); this.OrderTotalBox.Controls.Add(this.subtotallbl); this.OrderTotalBox.Location = new System.Drawing.Point(51, 349); this.OrderTotalBox.Name = "OrderTotalBox"; this.OrderTotalBox.Size = new System.Drawing.Size(512, 243); this.OrderTotalBox.TabIndex = 25; this.OrderTotalBox.TabStop = false; this.OrderTotalBox.Text = "Order total"; // // Clearbtn // this.Clearbtn.Location = new System.Drawing.Point(726, 447); this.Clearbtn.Name = "Clearbtn"; this.Clearbtn.Size = new System.Drawing.Size(241, 70); this.Clearbtn.TabIndex = 26; this.Clearbtn.Text = "Clear Order"; this.Clearbtn.UseVisualStyleBackColor = true; // // Lab10 // this.AcceptButton = this.Orderbtn; this.AccessibleRole = System.Windows.Forms.AccessibleRole.None; this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 31F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.Exitbtn; this.ClientSize = new System.Drawing.Size(1002, 633); this.Controls.Add(this.Clearbtn); this.Controls.Add(this.OrderTotalBox); this.Controls.Add(this.AddonItemsBox); this.Controls.Add(this.MainCourseBox); this.Controls.Add(this.Exitbtn); this.Controls.Add(this.Orderbtn); this.Name = "Lab10"; this.Text = "Lunch Order"; this.MainCourseBox.ResumeLayout(false); this.MainCourseBox.PerformLayout(); this.AddonItemsBox.ResumeLayout(false); this.AddonItemsBox.PerformLayout(); this.OrderTotalBox.ResumeLayout(false); this.OrderTotalBox.PerformLayout(); this.ResumeLayout(false);

}

#endregion

private System.Windows.Forms.Button Orderbtn; private System.Windows.Forms.Button Exitbtn; private System.Windows.Forms.Label subtotallbl; private System.Windows.Forms.Label taxlbl; private System.Windows.Forms.Label ordertotallbl; private System.Windows.Forms.RadioButton hamburgerbtn; private System.Windows.Forms.RadioButton pizzabtn; private System.Windows.Forms.RadioButton saladbtn; private System.Windows.Forms.CheckBox addon1chk; private System.Windows.Forms.CheckBox addon2chk; private System.Windows.Forms.CheckBox addon3chk; private System.Windows.Forms.TextBox subtotaltxt; private System.Windows.Forms.TextBox tabtxt; private System.Windows.Forms.TextBox ordertotaltxt; private System.Windows.Forms.GroupBox MainCourseBox; private System.Windows.Forms.GroupBox AddonItemsBox; private System.Windows.Forms.GroupBox OrderTotalBox; private System.Windows.Forms.Button Clearbtn; } }

C-Sharp University needs you to create a form that accepts a lunch order from the student and then calculates the order subtotal and total. Lunch Order Main course Add-on items (S.75/each) Hamburger- $6.95 Pizza -$5.95 Salad -$4.95 Lettuce, tomato, and onions Ketchup, mustard, and mayo French fres Order total Place Qrder Subtotal Tax (7.75%) Order total Exit The application should provide for these main courses and add-ons: Price 6.95 Add-on Lettuce, tomato, and onions Ketchup, mustard, and mayo French fries Add-on price .75 Main course Hamburger Pizza 5.95 .50 Pepperoni Sausage Olives Salad Croutons Bacon bits Bread sticks 4.95 25 C-Sharp University needs you to create a form that accepts a lunch order from the student and then calculates the order subtotal and total. Lunch Order Main course Add-on items (S.75/each) Hamburger- $6.95 Pizza -$5.95 Salad -$4.95 Lettuce, tomato, and onions Ketchup, mustard, and mayo French fres Order total Place Qrder Subtotal Tax (7.75%) Order total Exit The application should provide for these main courses and add-ons: Price 6.95 Add-on Lettuce, tomato, and onions Ketchup, mustard, and mayo French fries Add-on price .75 Main course Hamburger Pizza 5.95 .50 Pepperoni Sausage Olives Salad Croutons Bacon bits Bread sticks 4.95 25

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

Icdt 88 2nd International Conference On Database Theory Bruges Belgium August 31 September 2 1988 Proceedings Lncs 326

Authors: Marc Gyssens ,Jan Paredaens ,Dirk Van Gucht

1st Edition

3540501711, 978-3540501718

Students also viewed these Databases questions

Question

Discuss how we best understand and control pain.

Answered: 1 week ago

Question

help quickly Evaluate the divergence theorem for the volume 2

Answered: 1 week ago

Question

2. What is the business value of security and control?

Answered: 1 week ago