Professional Documents
Culture Documents
Page 1 of 4
FACULTY of Computer & IT
Advanced java Programming, April 2020
1) Create a tip calculator application with a JavaFX user interface. The
application will let you enter the amount of a restaurant charge, and it will
display the amount of a 20% tip. The completed user interface will look like
this:
Page 2 of 4
FACULTY of Computer & IT
Advanced java Programming, April 2020
2) Design the below GUI as follows:
a) Create a Border Pane with 3 regions namely, Top, Center and Bottom as
the root of your Scene.
b) Add the controls as seen in the figure. You may need other layout
containers.
c) Use the radio buttons to change the background of the Border Pane and
use the Buttons to change the font size of the Label.
Page 3 of 4
FACULTY of Computer & IT
Advanced java Programming, April 2020
3) Using the UML diagram, take the following steps:
a) Create the classes Ship, CruiseShip and CargoShip shown in the UML diagram.
b) CruiseShip and CargoShip should inherit class Ship.
c) Override the function displayInfo() in CruiseShip and CargoShip to display the
information as required by these classes.
d) Create a Test class to create instances of the classes.
Page 4 of 4