Ask
your own question, for FREE!
Mathematics
32 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
zanesafoodie:
love is a poison the deadliest kind love is blind and yet it can still help you f
FredFred:
There is a silk ladder unrolled across the ivy There is That leaning over the pre
jhaseker:
Yet memories hold your gentle face. Our hearts, once woven, now apart, A lingering ache within my heart.
CloverKris:
If a fictional character were to attach an Atlatl to a mechanical arm (updating t
serenitystXrgazer:
They are little lines of nothing slits of a vacuum void of light or anything good.
6 hours ago
9 Replies
0 Medals
10 hours ago
1 Reply
1 Medal
10 hours ago
7 Replies
0 Medals
1 day ago
4 Replies
0 Medals
1 day ago
1 Reply
0 Medals