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
icon
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?
Group of answer choices:
  1. 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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT