Question
***C sharp create a Form************** Create a Sandwich Delivery Application. You can use any name for the Sandwich Company, and choices of sandwich and add-on
***C sharp create a Form**************
Create a Sandwich Delivery Application. You can use any name for the Sandwich Company, and choices of sandwich and add-on types. The application will function as if a customer was entering the information themselves. You can use the Chapter 10 example as a starting point for this application, but use size, meats, breads and toppings instead of entrees and drinks. You can use any combination of selection controls (list box, radio buttons, etc.) you do not need to match those present in the Chapter 10 example. You can use parallel arrays or a class definition to link items to prices.
Create this program as a Windows Forms Application.
The initial form would allow the user to enter a customer name, address, and phone number.
The initial form should have the company name displayed at the top. You can optionally include a picture as well to represent the logo.
The initial form should also include a List Box of the current order items, a label containing the order total
The initial form will have a button (Add Sandwich) that will open a second form. The second form will contain all the choices from the to create a sandwich below
This second form should be opened as a dialog
When the dialog is closed, if appropriate the form should update the listbox with the new sandwich information and update the order total
The initial form should have a Remove Sandwich button that removes a Sandwich from the list and updates the order total
The initial form should have a completion button that provides a summary of the customer data and the sandwich dataThis information should be displayed as using a Messagebox object that provides Yes and No buttons.
If the user selects Yes, reset the form and empty the listbox
If the user selects No, return to the form as is to allow further updates
The second form will contain information to allow a user to select options to create a sandwich
The second form should contain a way to select the follow components:
Size
Bread Type
Additional filling options (meats/vegetables/sauces)
The second form should contain a button to finalize choices and return control to the initial form
The second form should contain a cancel button that returns the user to the original form but does not add a new sandwich to the order
Create a Menu Class
This class should contain only static methods that return the information needed to fill the sandwich form
These methods should provide arrays or lists information to fill the size/bread/ingredient choices
Create a Sandwich class that stores any information about a sandwich. It should allow the following properties
Size
Bread Type
At least 5 options for meats/vegetables/sauces
Both the display information and price of the components need to be stored to support the following methods:
A method to calculate the sandwich cost using the menu class and the options chosen.
A method to convert the sandwich data to a string like the following:
Wrap with lettuce, tomatoes, pickles, Italian dressing [$4.25] Wheat Bread with salami, ham, roast beef, turkey, mayonnaise, olives [$7.50]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started