Fill in Order Details

  • Submit paper details for free using our simple order form

Make Payment Securely

  • Add funds to your account. There are no upfront payments. The writer will only be paid once you have approved your paper

Writing Process

  • The best qualified expert writer is assigned to work on your order
  • Your paper is written to standard and delivered as per your instructions

Download your paper

  • Download the completed paper from your online account or your email
  • You can request a plagiarism and quality report along with your paper

floating-point

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,

and the absolute value of the number.

5.4

The smallest home number greater than 5.4 is 6.0

The larger whole number less than 5.4 is 5.0

The absolute value of 5.4 is 5.4

Do you want to enter more data?Â&nbsp;Â&nbsp;y/n

y

Enter a float number and I will tell you:

the smallest home number > = to the number,

the largest whole number < = to the number, an

and the absolute value of the number.

-8.8

The smallest whole number greater than -8.8 is -8.0

The largest whole number less than -8.8 is -9.0

The absolute value of -8.8 is 8.8

Do you want to enter more data?Â&nbsp;Â&nbsp;y/n

n

Complete the following Java program, inserting comments, package names, or calls to methods of the class Math after the bold comments. For readability, leave them blank lines and comments in place throughout the program. Save program asÂ&nbsp;NumbersFixed.javaÂ&nbsp;to the device or location specified by your instructor. Compile, execute, and test program. After executing your program, select and copy everything that appears on your screen. Paste the copied text into a comment block at the end of your program.

// Include comments to identify the writer of the code

// and to describe the program.

importÂ&nbsp;Â&nbsp;java.util,*;

// The following statement imports the Math class.

import

public class NumbersFixed

{

static Scanner console = new Scanner (System.in);

public static void main (String[ ] args)

{

double x;

String token;

char again = ‘y’;

whileÂ&nbsp;Â&nbsp;(again = = ‘y’)

{

System.out.println(“ Enter a float number and I will “

+ “tell you:n”

+ “the smallest whole number > = to the number,n”

+ “the largest whole number < = to the number,n”

+ “and the absolute value of the number.n”);

x = console.nextDouble ( );

System.out.println(“nThe smallest whole number “

+ “greater than “Â&nbsp;Â&nbsp;+Â&nbsp;Â&nbsp;xÂ&nbsp;Â&nbsp;+Â&nbsp;Â&nbsp;“ isÂ&nbsp;Â&nbsp;“

/ / Following is a method call to calculate the

/ / smallest whole number > = the input value.

+

+ “nThe largest whole number less than “Â&nbsp;Â&nbsp;+Â&nbsp;Â&nbsp;x

+” is “

/ / Following is a method call to calculate the

/ /largest whole number < = the input value.

+

+ “nThe absolute value of “Â&nbsp;Â&nbsp;+Â&nbsp;Â&nbsp;xÂ&nbsp;Â&nbsp;+Â&nbsp;Â&nbsp;“ 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?”

+ “Â&nbsp;Â&nbsp;y/n “);

token = console.next ( ) ;

again = token.charAt ( 0 ) ;

/ / The following statement converts the response

/ / character entered by the user to lowercase.

again =

}

}

}

Â&nbsp;

WHAT OUR CURRENT CUSTOMERS SAY

  • Google
  • Sitejabber
  • Trustpilot
Zahraa S
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!

ORDER NOW

CategoriesUncategorized

Consider Your Assignments Done

“All my friends and I are getting help from eliteacademicresearch. It’s every college student’s best kept secret!”

Jermaine Byrant
BSN

“I was apprehensive at first. But I must say it was a great experience and well worth the price. I got an A!”

Nicole Johnson
Finance & Economics

Our Top Experts

See Why Our Clients Hire Us Again And Again!


OVER

10.3k
Reviews

RATING
4.89/5
Average

YEARS
13
Mastery

Success Guarantee

When you order form the best, some of your greatest problems as a student are solved!

Reliable

Professional

Affordable

Quick

Using this writing service is legal and is not prohibited by any law, university or college policies. Services of Elite Academic Research are provided for research and study purposes only with the intent to help students improve their writing and academic experience. We do not condone or encourage cheating, academic dishonesty, or any form of plagiarism. Our original, plagiarism-free, zero-AI expert samples should only be used as references. It is your responsibility to cite any outside sources appropriately. This service will be useful for students looking for quick, reliable, and efficient online class-help on a variety of topics.