Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

CITP 4350 A restaurant wants an application that calculates a table’s bill. Let user to enter the number of people in the party. If it is more than 6, it adds 15% tips to the total. Otherwise, let...

1 answer below »
CITP 4350
A restaurant wants an application that calculates a table’s bill.
Let user to enter the number of people in the party. If it is more than 6, it adds 15% tips to the total. Otherwise, let user enter the tips amount.
The application should display all the menu items in a ListBox (ComboBox). The ListBox (ComboBox) should Display the category of food offered by the restaurant separately (Beverage, Appetizer, Main Course and Dessert). The user can choose from one of the ListBox (ComboBox) to add an item to a table’s bill. As each item is selected, it adds the price of that item to the subtotal.
The program should include Subtotal, Tax, Tips, and Total fields in the GUI. Also, the user can click the “Clear Bill” Button to restore the Subtotal, Tax, Tips, and Total to $0.00.
Use the RestaurantMenu database on blackboard. Save the project as Exam2_YOUR_NAME.
Answered Same Day Nov 28, 2021

Solution

Mohd answered on Dec 01 2021
149 Votes
Solution/RestaurantMenu/.vs/RestaurantMenu/v16/.suo
Solution/RestaurantMenu/RestaurantMenu.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30611.23
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestaurantMenu", "RestaurantMenu\RestaurantMenu.csproj", "{A472812D-E57D-4E9A-8FC0-A0B4A5E0372A}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
        Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {A472812D-E57D-4E9A-8FC0-A0B4A5E0372A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {A472812D-E57D-4E9A-8FC0-A0B4A5E0372A}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {A472812D-E57D-4E9A-8FC0-A0B4A5E0372A}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {A472812D-E57D-4E9A-8FC0-A0B4A5E0372A}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
    GlobalSection(ExtensibilityGlobals) = postSolution
        SolutionGuid = {4306FBBE-C284-4F9F-8EAB-4FF4ABD7F265}
    EndGlobalSection
EndGlobal
Solution/RestaurantMenu/RestaurantMenu/App.config




Solution/RestaurantMenu/RestaurantMenu/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RestaurantMenu
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
Solution/RestaurantMenu/RestaurantMenu/Form1.Designer.cs
namespace RestaurantMenu
{
partial class Form1
{


Required designer variable.


summary
private System.ComponentModel.IContainer components = null;


Clean up any resources being used.


summary

true if managed resources should be disposed; otherwise, false.
param
protected ove
ide 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.


summary
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.SuspendLayout();



label1


this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(241, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(311, 44);
this.label1.TabIndex = 0;
this.label1.Text = "Restaurant Menu";



label2


this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(21, 121);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(125, 25);
this.label2.TabIndex = 1;
this.label2.Text = "Menu Items: ";



comboBox1


this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Beverage",
"Appetizer",
"Main Course",
"Dessert"});
this.comboBox1.Location = new System.Drawing.Point(264, 128);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(193, 24);
this.comboBox1.TabIndex = 2;



label3


this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(21, 187);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(220, 25);
this.label3.TabIndex = 3;
this.label3.Text = "Enter number of people:";



textBox1


this.textBox1.Location = new System.Drawing.Point(264, 187);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(193, 22);
this.textBox1.TabIndex = 4;



label4


this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(21, 251);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(112, 25);
this.label4.TabIndex = 5;
this.label4.Text = "Enter Tips: ";



textBox2


this.textBox2.Location = new System.Drawing.Point(264, 255);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(193, 22);
this.textBox2.TabIndex = 6;



button1


this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(291, 310);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(129, 37);
this.button1.TabIndex...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here