What does the following code do? Assume this method is invoked by the method call mystery( 70, 80 ). What value is returned from this method call?

```
1 private int mystery( int number1, int number2 )
2 {
3 int x;
4 int y;
5
6 x = number1 + number2;
7 y = x / 2;
8
9 if ( y <= 60 )
10 {
11 return x;
12 }
13 else
14 {
15 return y;
16 }
17
18 } // end method mystery
```


The value returned is 75.

Computer Science & Information Technology

You might also like to view...

Which of the following statements describes block scope?

a. It begins at the opening { of the class declaration and terminates at the closing }. b. It limits label scope to only the method in which it is declared. c. It begins at the identifier's declaration and ends at the terminating right brace (}). d. It is valid for one statement only.

Computer Science & Information Technology

Merging rows from multiple database tables is called __________ the tables.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ____________________ attribute of the