Top Posters
Since Sunday
New Topic  
Eels Eels
wrote...
Posts: 716
Rep: 0 0
7 years ago
Look at the following pseudocode algorithm.

algorithm Test14(int x)
  if (x < 8)
    return (2 * x)
  else
    return (3 * Test14(x - 8) + 8)
end Test14

What value is returned for Test14(16)?
A) 8
B) 24
C) 32
D) 16
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 172 times
2 Replies
Replies
Answer verified by a subject expert
blitheringblithering
wrote...
Posts: 354
Rep: 9 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1
University of Notre Dame

Related Topics

Eels Author
wrote...
7 years ago
This brought my confidence back up, thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1250 People Browsing
Related Images
  
 251
  
 104
  
 1014
Your Opinion
Who's your favorite biologist?
Votes: 586