Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions

Question

=+Trainers from headquarters? Local trainers? Independent trainers?

Answered: 1 week ago