For the pseudo-code program below, assume that variables x, y, z, n and count hold integer values x-129 y f1(x) 2-f2(y) print x, y, z define f1(n) count - 0 while(n> 0) n = n/2 count count 1 return count define f2(count) n-1 while (count > 0) n-n2 count count return n

icon
Related questions
Question
For the pseudo-code program below, assume that variables x, y, z. n and count hold integer values...
x-129
y - f1(x)
f2(y)
print x, y, z
2-
define fl(n)
count - 0
while(n > 0)
n = n/2
count count + 1
return count
define f2(count)
n-1
while (count > 0)
n-n2
count count
return n
1
The output of the program will be:
Transcribed Image Text:For the pseudo-code program below, assume that variables x, y, z. n and count hold integer values... x-129 y - f1(x) f2(y) print x, y, z 2- define fl(n) count - 0 while(n > 0) n = n/2 count count + 1 return count define f2(count) n-1 while (count > 0) n-n2 count count return n 1 The output of the program will be:
The output of the program will be:
O 129, 7, 256
O
129, 9, 512
O 129, 8, 129
129, 8, 256
O 129, 7, 128
Transcribed Image Text:The output of the program will be: O 129, 7, 256 O 129, 9, 512 O 129, 8, 129 129, 8, 256 O 129, 7, 128
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer