Question: Programming: Submit Order Button Use Try/Catch blocks when converting user input (textboxes) into your numeric variables If a user input fails a conversion, in the

Programming:

  1. Submit Order Button
    1. Use Try/Catch blocks when converting user input (textboxes) into your numeric variables
    2. If a user input fails a conversion, in the catch portion have a message box display saying which input field was in error and how they should fix it then return focus to that field.
    1. If all inputs convert successfully then proceed with the calculations:
      1. Calculate the subtotal.
        1. Java is $25 per cup
        2. Mocha is $95 per cup
        3. Latte is $2.75 per cup
        4. Frappe is $3.25 per cup
      2. Calculate the tax
        1. Tax rate is 9%
      3. Calculate Order Total = Subtotal + tax
    2. Display values in corresponding order total text boxes. All values should display in currency format.
    3. Display a message to the user in the message textbox above the buttons that says Thank you (customer name from text box) for you order. (see GUI design for example)
    4. Change the color of the message box text to magenta
  2. Clear Button
    1. Clear all textboxes on the form
    2. Set focus to customer name text box
  3. Exit Button
    1. Close form

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!