Answer:
Explanation:
Firstly create a Scanner object (Line 4).
Next, prompt the user to enter a floating point value and assign it to variable value (Line 6 -7).
Use the Java Math floor and ceil method to get the number less than and greater then the value, respectively, and print them out to the console (Line 9 - 10).