Ask
your own question, for FREE!
Mathematics
16 Online
Consider the following pseudocode function. function Crunch(x is in R) if x ≥ 100 then return x/100 else return x + Crunch(10 · x) (a) Compute Crunch(5). Crunch(5) = (b) What happens if you try to compute Crunch(−24)? What does this suggest about an appropriate precondition for this function?
Still Need Help?
Join the QuestionCove community and study together with friends!
this might be a bit difficult to answer if you're not familiar with basic coding, but when you plug 5 into the function, check the "if" condition to see if 5 satisfies the condition, otherwise, move to the "else" statement, then report the value that is ~returned~ by the function
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Countless7Echos:
Ah trying out the whole T.V girl drawing :p (I love drawing eyes)
SnowyBreaks:
You ever get the types of dreams where it feels as if you aren't breathing? And w
laylasnii13:
Poem/diary i wrote I Want Out Iu2019m so tired of screaming into walls. Every fight with my mom leaves something broken and itu2019s not just plates or slam
Countless7Echos:
Aye.. I need actually some help on the shading here.. if the light is from above too I just feel something is off.
29 minutes ago
1 Reply
1 Medal
8 hours ago
6 Replies
0 Medals
1 day ago
13 Replies
3 Medals
2 days ago
19 Replies
3 Medals