CMPG 211 Assignment - GUI Graphical User Interface: Chapter 14, 15 and 16 (Liang) Do the following:   Create a new pro

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

CMPG 211 Assignment - GUI Graphical User Interface: Chapter 14, 15 and 16 (Liang) Do the following:   Create a new pro

Post by answerhappygod »

CMPG 211 Assignment - GUI
Graphical User Interface: Chapter 14, 15 and 16
(Liang)
Do the following:


Create a new project called Guess game. Create
a JavaFX class and create the layout shown
below.
The computer must generate a rondom number of the range from 1
to 10 in the Random
number button.


The user must guess what number has been generated by entering
an integer number.
In the Check match button : compare the number
that was enteredc to the random number.
Compile and display a suitable message (String) that contains
the number that was entered and
a message too high or too low
Display the message in the text area
With each guess the number of guesses must be incremented, the
textfield must be cleared and
the focus must be on the textfield (Hint: Use the requestFocus()
method on the textfield).
If the numbers are the same, display the number and a message
Correct! And display the total
number of guesses
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply