Microsoft Word - Simple_JavaFX_Assignment.docx
JavaFX Assignment/Activity
Develop a GUI program using JavaFX that will compute sales commissions and sales amounts.
The following schemes are used to determine the commission rate and sales amount.
Computing Commission
Sales Amount Commission rate
$0 to $ XXXXXXXXXX%
$5001 to 10, XXXXXXXXXX%
10,001 and above 12%
Computing Sales Amount from Commission as an input
Commission Amount Commission rate
$0 to $ XXXXXXXXXX%
$401 to XXXXXXXXXX%
More than $ XXXXXXXXXX%
The GUI design is given below:
General instructions for assignment submission are already sent via Slate email.
Please follow the following on runtime:
• When you run first time, your window will appear as shown below:
• After entering sales amount 15000 in the textfield and clicking “Compute sales Commission”, output
appears in a dialog box as shown below:
If you wish, you can display the output in the dos box or output box of the IDE
• If you enter commission amount 1500 in the textfield and you click “Compute Sales Amount”, your
output will appear in a message box as shown below:
If you wish, you can display the output in the dos box or output box of the IDE
• If you enter a character not a real number, then the following message box will appear upon click of
any of the two buttons (input is validated here):