You have been hired by an amusement park company to write a JAVA program that prompts a Person to enter their age and height and to find out if they are eligible to ride. A person is eligible to ride if their age is above 9 years and their height is greater than 120cm, i.e., both conditions must be satisfied for a Person to ride

You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others here.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"

Post what you have done so far and someone will help you from there.

Not to mention somebody posted this exact assignment not even a week ago.
let me guess: you got too many bad critiques and signed up under a new user name?

or his buddy who has the same assignment and just took a week longer to realise homework doesn't do itself if you just let it sit on your table long enough.