Answered step by step
Verified Expert Solution
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:
- 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 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.
-
- If all inputs convert successfully then proceed with the calculations:
- Calculate the subtotal.
- Java is $25 per cup
- Mocha is $95 per cup
- Latte is $2.75 per cup
- Frappe is $3.25 per cup
- Calculate the tax
- Tax rate is 9%
- Calculate Order Total = Subtotal + tax
- Calculate the subtotal.
- Display values in corresponding order total text boxes. All values should display in currency format.
- 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)
- Change the color of the message box text to magenta
- If all inputs convert successfully then proceed with the calculations:
- Clear Button
- Clear all textboxes on the form
- Set focus to customer name text box
- Exit Button
- Close form
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