Write a method called larger that accepts two floating-point parameters (of type double) and returns true if the first parameter is greater than the second, and false otherwise.

What will be an ideal response?


```
public boolean larger(double num1, double num2)
{
return (num1 > num2);
}

```

Computer Science & Information Technology

You might also like to view...

A user arrives at a railway station that she has never visited before, carrying a PDA that is capable of wireless networking. Suggest how the user could be provided with information about the local services and amenities at that station, without entering the station’s name or attributes. What technical challenges must be overcome?

What will be an ideal response?

Computer Science & Information Technology

The process of buying new hardware components or software programs to increase computer performance is known as:

A) defragging B) updating C) benchmarking D) upgrading

Computer Science & Information Technology

Windows 7 has three power plans. They are ____________________

a. Balanced, Power Saver, and High Performance b. Desktop, Laptop, and Mobile c. Media, Gaming, and Normal d. Sleep, Hibernate, and Normal

Computer Science & Information Technology

Which of the following statements assigns the contents of the txtGrade control, in uppercase, to the strGrade variable?

A. If strGrade = txtGrade.Text.ToUpper Then B. strGrade.ToUpper = txtGrade.Text C. strGrade = txtGrade.Text.ToUpper D. txtGrade.Text.ToUpper = strGrade

Computer Science & Information Technology