You are given a method with the signature: /** * Returns the minimum of the two numbers * *@param n1 the first number *@param n2 the second number *@return the smaller of the two numbers */ public float minimum(float n1, float n2) It is part of the class MyMath. Which of the following is a correct use of the method? Group of answer choices: float f = MyMath.minimum(0.2f,1.5f); 2. int i = MyMath.minimum(
You are given a method with the signature: /** * Returns the minimum of the two numbers * *@param n1 the first number *@param n2 the second number *@return the smaller of the two numbers */ public float minimum(float n1, float n2) It is part of the class MyMath. Which of the following is a correct use of the method? Group of answer choices: float f = MyMath.minimum(0.2f,1.5f); 2. int i = MyMath.minimum(
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Modularization Techniques
Section: Chapter Questions
Problem 8RQ
Related questions
Question
You are given a method with the signature:
/**
* Returns the minimum of the two numbers
*
*@param n1 the first number
*@param n2 the second number
*@return the smaller of the two numbers
*/
public float minimum(float n1, float n2)
It is part of the class MyMath. Which of the following is a correct use of the method?
/**
* Returns the minimum of the two numbers
*
*@param n1 the first number
*@param n2 the second number
*@return the smaller of the two numbers
*/
public float minimum(float n1, float n2)
It is part of the class MyMath. Which of the following is a correct use of the method?
Group of answer choices:
- float f = MyMath.minimum(0.2f,1.5f);
2. int i = MyMath.minimum(2,5);
3. float f = MyMath.minumum(5,99);
4. int i = MyMath.minimum(2f,5f);
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT