Page 1 of 1

In JavaFX, create a basic calculator. It should have the following components (use a layout of your choice, but try to m

Posted: Thu Jul 14, 2022 2:28 pm
by answerhappygod
In JavaFX, create a basic calculator. It should have thefollowing components (use a layout of your choice, but try to makeit look nice and user-friendly):
Three text fields. Two input fields, one output field (10 ptseach, 30 pts total).
Four buttons: Add, Subtract, Multiply, Divide (10 pts each, 40pts total).
The following input error checking should be performed prior toattempting to execute an arithmetic operation:
Check that neither input is blank. If it is, your program shoulddo nothing. Do not attempt to perform the operation, but do notdisplay any kind of a message to the user either (5 pts).
Check that both inputs contain numbers. If non-numeric input isgiven, your program should display an error message to the user,stating that numeric input is expected (10 pts).