Complete a program that asks the user to enter a floating-point number (either positive or negative). The program repeats while...
Complete a program that asks the user to enter a floating-point number (either positive or negative). The program repeats while the user enters ?y? to continue. The program allows a user to enter either a lowercase or uppercase character. Use the ceil use the (), floor (), and abs () methods to determine the smallest whole number that is greater than or equal to the number entered, the largest whole number that is less than or equal to the number entered, and the absolute value of the number given, respectively. Use the toLowercase () method to change a given character value to lowercase if the value is an uppercase value.;Supply the missing code and import the correct packages for the predefined methods used.;Following is a copy of the screen results that might appear after running your program, depending on the data entered after all the changes have been made. The text entered by the user appears in bold.;Enter a float number and I will tell you;the smallest whole number > = to the number;the largest whole number = to the number;the largest whole number = to the number,\n?;+ ?the largest whole number = the input value.;+;+ ?\nThe largest whole number less than ? + x;+? is ?;/ / Following is a method call to calculate the;/ /largest whole number < = the input value.;+;+ ?\nThe absolute value of ? + x + ? is ?;/ / Following is a method call to calculate the;/ / absolute value of the input value.;+;+ ?\n?);System.out.println(?Do you want to enter more data??;+ ? y/n ?);token = console.next ();again = token.charAt (0);/ / The following statement converts the response;/ / character entered by the user to lowercase.;again =
Paper#69279 | Written in 18-Jul-2015Price : $22