Section8Problems 2 - For each cafl below, CaLl (6) (17)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: For each cafl below, CaLl (6) (17) (259) (971 ) (-47 9) fol-Iowing indicate what value is returned: Method mystery3 mystery3 mystery3 mystery3 mystery3 4. Consider the VaLue Returned method: public if (int int mystery n) i (n return mystery4 (-n); (n < 10) t else if ) return n; ) else t return n t 10 + mysteryA (n / ) below, CaIl(B) indicate L}l i ) For each calI what value is returned: Returned Method mystery4 Value mystery 4 (1 4l mystery 4 (-52) mystery (3052) mystery 4 (82534) 5. Consider the following method: { public if int y) mysteryS (int x, int (x -mystery5 (-x, yl i return (y else if -mystery5 (x, -y) ; return (x :: else if 0) 0 && y :: return O; el-se return 100 * mysteryS(x / 70, y / IA1 + 10 * (x t 10) +y \ IO; ...
View Full Document

This note was uploaded on 11/03/2009 for the course CSE 143 taught by Professor Sr during the Spring '08 term at University of Washington.

Ask a homework question - tutors are online