Directions First create an interface for a program that helps a group of people to calculate how much each of them owes for a restaurant meal that looks like the one below. Then add an event handler to the Calculate button that reads values from the total, tip percentage, and number of people text fields and computes the amount that each person should pay, assuming that the check is divided evenly. This amount should be properly formatted (rounded to two decimal places and preceded by a dollar sign) and replace the text in the label. If any of the text fields are empty or contain something other than numeric values when the Calculate button is pressed, then pressing it should have no effect (i.e. the exception stack trace should be shown on the console for debugging use by the programmer, but the GUI should not crash or end its execution). Check Divider Total: 64.47 Tip Percentage: 18 Number of People: 3 Each person pays: $25.36 Calculate
First create an interface for a program that helps a group of people to calculate how much each of them owes for a restaurant meal that looks like the one below. Then add an event handler to the Calculate button that reads values from the total, tip percentage, and number of people text fields and computes the amount that each person should pay, assuming that the check is divided evenly. This amount should be properly formatted (rounded to two decimal places and preceded by a dollar sign) and replace the text in the label. If any of the text fields are empty or contain something other than numeric values when the Calculate button is pressed, then pressing it should have no effect (i.e. the exception stack trace should be shown on the console for debugging use by the programmer, but the GUI should not crash or end its execution). In java pls!!!
![Directions
First create an interface for a program that helps a group of people to calculate how
much each of them owes for a restaurant meal that looks like the one below. Then
add an event handler to the Calculate button that reads values from the total, tip
percentage, and number of people text fields and computes the amount that each
person should pay, assuming that the check is divided evenly. This amount should
be properly formatted (rounded to two decimal places and preceded by a dollar
sign) and replace the text in the <Enter the above information and press Calculate>
label. If any of the text fields are empty or contain something other than numeric
values when the Calculate button is pressed, then pressing it should have no effect
(i.e. the exception stack trace should be shown on the console for debugging use by
the programmer, but the GUI should not crash or end its execution).
Check Divider
Total:
64.47
Tip Percentage:
18
Number of People:
3
Each person pays:
$25.36
Calculate](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7f80e2b9-2cfd-4c3a-b29d-7104fd1276e9%2F16b5a165-5395-4d0d-8e87-d640955c2aff%2F6xmu3ju_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)