1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
stepan [7]
3 years ago
14

Write the definitions for three functions named max. Each receives two parameters, of the same type, and returns the larger of t

he two values. Define one of these functions to apply to type double, another to type int and a third to type char.
Computers and Technology
1 answer:
AnnZ [28]3 years ago
5 0

Answer:

public double max(double m, double n)

{

if (m>=n)

return m;

else

return n;

}

public int max(int m, int n)

{

if (m>=n)

return m;

else

return n;

}

public char max(char m, char n)

{

if (m>=n)

return m;

else

return n;

}

Explanation:

In each of the three methods declarations (Java) above, we are comparing two variables. m and n. The question did not specify what should happen when both variables are the same (i.e. m = =n). We make an assumption and set the condition to be if(m>=n) m should be returned as the greater.

You might be interested in
Your company is getting negative feedback on the current customer service process. It’s your job to make sure customers are happ
Andru [333]

Answer:

I would say the second one

Explanation:

it makes sense cause if you're able to fix the problem that's how. if not then the last one

4 0
3 years ago
Bar-code readers are typically used to track large numbers of inventory items, as in grocery store inventory and checkout, packa
lilavasa [31]
B. False ..................
6 0
3 years ago
. Alex discovered a bunch of SATA drives in a box at the office and needs to check the contents. What can he do so that Windows
ZanzabumX [31]

You have to make sure the BIOS boot is set to the normal hard drive first, then plug in the SATA cable and power properly

8 0
3 years ago
Pls help me pls I’m struggling
evablogger [386]

Answer:Turn Right () Degrees (block)

The turn right () degrees block is a Motion block and a stack block. The block turns its sprite's direction the specified amount of degrees clockwise.

6 0
3 years ago
What does the octal number 362 represent in the decimal system?
kykrilka [37]
The answer is E. 242
8 0
3 years ago
Other questions:
  • To change the caption for a field in a query, click the field in the design grid, click the ____ button on the Design tab, click
    14·1 answer
  • Edmund wants to create a website for his university. He has created all the necessary content and now wants to style and format
    11·1 answer
  • Your friend wants to know about Microsoft Expression Web 4. Which of the following terms will you use to describe Microsoft Expr
    5·1 answer
  • Ron is the IT director at a medium-sized company and is constantly bombarded by requests from users who want to select customize
    5·1 answer
  • Why when i create a powerpoint on word it doesn't open properly in other programmes
    5·1 answer
  • The shortcut key to access the spelling and grammar check is _____.
    11·2 answers
  • Which is an advantage of setting bookmarks?
    15·1 answer
  • What power brake uses vacuum from the engine to aid in brake application?
    6·2 answers
  • Which practice enables recovery of accidental deletions in data records?
    11·1 answer
  • What is a thread? what resources does it share with other threads in the same process?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!