What method of the Math class is used to determine the smallest whole number that is greater or equal to a given floating point number? Choose from the given choices.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Choices: 

a. abs
b. absoluteValue
c. ceil
d. ceiling
e. char
f. double
g. floor
h. import java.lang.*;
i. import java.util.*;
j. import java.util.Character;
k. import java.util.Math;
l. int
m. isDigit
n. isNumeric
o. length
p. max
q. min
r. sqrt
s. String
t. substring
u. toCapital
v. toCapitalCase
w. toUpperCase
x. valueOf()
What method of the Math class is used to determine the smallest whole
number that is greater or equal to a given floating point number? Choose
from the given choices.
Transcribed Image Text:What method of the Math class is used to determine the smallest whole number that is greater or equal to a given floating point number? Choose from the given choices.
An application that is created using the Java programming language may be a collection of classes and
each class has methods and data members. Some of the classes involved in an application are predefined
and their methods are designed to perform a specific task. The predefined classes are organized into
collections of classes known as class libraries or packages. Three commonly used predefined classes are
the Math class, the Character class, and the String class. The Math class contains predefined methods
for performing mathematical operations. For example, sqrt is a method in the predefined Math class and
it (the sqrt method) is used to calculate the square root of a number. The Character class contains
predefined methods for character manipulation. For example, the toLowerCase method in the predefined
Character class is used to change a given character value to lowercase if the character value is a capital
letter. The String class contains predefined methods for manipulating strings. To use the methods of a
predefined class, the library or package that contains the predefined class must be imported by an import
statement.
Transcribed Image Text:An application that is created using the Java programming language may be a collection of classes and each class has methods and data members. Some of the classes involved in an application are predefined and their methods are designed to perform a specific task. The predefined classes are organized into collections of classes known as class libraries or packages. Three commonly used predefined classes are the Math class, the Character class, and the String class. The Math class contains predefined methods for performing mathematical operations. For example, sqrt is a method in the predefined Math class and it (the sqrt method) is used to calculate the square root of a number. The Character class contains predefined methods for character manipulation. For example, the toLowerCase method in the predefined Character class is used to change a given character value to lowercase if the character value is a capital letter. The String class contains predefined methods for manipulating strings. To use the methods of a predefined class, the library or package that contains the predefined class must be imported by an import statement.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY