You are on page 1of 4

FACULTY of Computer & IT

Advanced java Programming, April 2020

Please Fill in the Following Information Carefully [ALL IN CAPS]:

Full Name: ____________________________________________ ID No.: ________________

Class: __________________Semester: ____________________ Date: ___________________

Assignment Marks: 20 Marks


INSTRUCTIONS TO THE STUDENTS:

 Read the Instructions Carefully FOR USE OF EVALUATORS


ONLY
Before Writing Any Answer. Marks Marks
Question #
 Label Your Questions Clearly. Allotted Earned
 Complete the assignment and submit 1 5
on time using the university online
2 7
assignments portal, you will not be
allowed to submit it after the 3 8
designated due date
4
 Do all the assignment by yourself and
avoid all types of cheating, any 5
grounds of suspicion will lead to the
6
immediate suspension of the
assignment. 7

Subject Name: Advanced Java 8


Programming
9
Subject Code: CA412
10
Class/es:CA171, CA172, CA173
Total
Assignment Due Date: 29 / 04 / 2020

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

You might also like