Question: Bookmark MUST BE DONE IN CSHARP AS WINDOWS FORM APPLICATION Create a Sandwich Delivery Application. You can use any name for the Sandwich Company, and
Bookmark
MUST BE DONE IN CSHARP AS WINDOWS FORM APPLICATION
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.
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 and a Complete Order button.
Create a menu class that stores the following:
Meat/Vegetable/Sauces with prices per option and size (a two-dimensional array or custom list will work)
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
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]
Create an order class that contains the customer contact information and an array/list of order items
The initial form will have a button that will open a second form. The second form will contain all the choices from the menu
Size
Bread
Fillings/Sauces
Complete button that closes the form and adds a sandwich to the order
Cancel button that closes the new form without saving anything about the new sandwich
When the user clicks the complete button and adds the item to the order, refresh the List Box so it contains the updated list of sandwiches (displaying the string representation above). It also updates the order total label
The final Complete Order button will display a Message Box to the user thanking them for their order and providing their contact information and order total one last time with Yes and No buttons. If the user clicks Yes, the application closes (as if the order was submitted), if the user clicks No, the user returns to the initial form with no changes (this represents the user spotting an error in the contact information, etc.).
Expert Answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
