An application of method Math.floor is rounding a value to the nearest integer. The statement y = Math.floor(x+0.5); will round the number to the nearest integer andassign it the result y. Write an application that reads double values and uses the preceding statement to round each of the numbers to the nearest integer. For eachnumber processed, display both the original number and the rounded number.


Doing a similar assignment? Save your time and hire our Genuine Essay Writers to do your task. Get 15% Discount on your 1st order. Use code: FREE15