Menu

[solved]-Vbnet Modify Application Allow User Place Orders Eating Establishment Add Pizza Size Crust Q39031030

***VB.NET***

Modify the application that will allow a user to place ordersfrom an eating establishment. Add an pizza (size,crust, toppings) class and a pizza form. In the SolutionExplorer,

  • To add the pizza class, right-click on theproject and select Add New Item/Class. Change the class file nameto Pizza.vb.
  • To add the pizza form, right-click on the project and selectAdd Windows Form. Change the form file name to pizzaForm.vb.

Add functionality to order pizzas.

  • Design the Pizza class (size, crust, toppings)using a UML class diagram. Include the class name, fields (privatedata members), and methods (public properties, constructors, andToString() method).
  • Code the Pizza class.
  • Design and code the pizza form
  • Add a pizza button and an event handler for the pizza button inthe main form. When the user clicks the Pizzabutton, display the new form. Use the following code to display thepizza form
    pizzaForm.ShowDialog()

In the new pizza form, allow the user to select the size, cruststyle, and toppings for the pizza, submit the form, clear the form,and close the form. Provide a label and radio buttons for the size(small, medium, large, family), a label and dropdown list for thecrust styles (thin, original, pan, stuffed, gluten-free). Providelabels and two listboxes for the toppings. In the first listbox,display the available toppings (bacon, pepperoni, sausage, blackolives, green peppers, mushrooms, onions, extra cheese). In thesecond listbox, display the chosen toppings. Provide a label todisplay a message to the user. Provide buttons Add Topping, RemoveTopping, Clear All Toppings, Order, Clear, and Close on the form.When the user clicks the

  • Add Toppingbutton, add the selected available topping to thelist of chosen toppings. If no topping is selected, display amessage to the user.
  • Remove Toppingbutton, remove the selected chosen topping fromthe list of chosen toppings. If no topping is selected, display amessage to the user.
  • Clear All Toppingsbutton, remove all chosen toppings from the listof chosen toppings.
  • Order button, instantiate and populate aPizza object. Display a message containing thedescription of the pizza by calling the ToString() method of theobject.
  • Clear button, clear the controls on the formand place the cursor on the first input control. (To clear thecontents of a TextBox, call the Clear() method. To reset the textin a Label, call the ResetText() method.)
  • Close button, close the form and return to themain form. (Do not qualify the call with Me.)

In each of the source files,

  • Include a comment containing your name, course, and date at thebeginning of the source code.
  • Include XML comments to document the class and methods.
  • Include comments to document your code.

Steps:

1. Design the class.

  • Create a UML class diagram identifying the class name, fields,and methods.

2. Design user interface.

  • Sketch the layout of the form.
  • Plan objects and properties.
  • Document the controls. Include the name, type, and propertieschanged for each of the controls. (See p. 183, Table 3-20)
  • Plan event procedures.

Expert Answer


Answer to ***VB.NET*** Modify the application that will allow a user to place orders from an eating establishment. Add an pizza (s… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *