Ask
your own question, for FREE!
Mathematics
42 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
jhaseker:
Anyone got help with this but I'm confused with this question. How do we accurate
JBlizzy:
the old me and new me the old me would let people push him around and he would ta
unknownnnnnn:
life is great. life is great, right? parents separate parents fight 24/7 walls shake doors slam silence feels louder than screaming father cheats like vows
jhaseker:
I need a creator to explain dis but why there lines on my chat like symbols
addison123456:
Iu2019m just so tired, like completely drained. I donu2019t even want to be here anymore; the weight of everything is just too much to carry.
CloverKris:
If I were to make a bullet game similar in gameplay to the famous Touhou, does an
DemonKinge:
I wasn't on during new year. So Happy New Year everyone hope this year goes great
Lillys2account:
this one is called u201cHard to Wake Upu201d Lately the sun feels heavy on my eye
unknownnnnnn:
One Year Without You... Today is the date he left my life. Last year, he wasnu2019t ready to go.
40 seconds ago
17 Replies
1 Medal
1 hour ago
3 Replies
1 Medal
13 hours ago
6 Replies
1 Medal
4 hours ago
17 Replies
2 Medals
2 days ago
0 Replies
0 Medals
13 hours ago
4 Replies
1 Medal
1 day ago
22 Replies
1 Medal
1 day ago
8 Replies
5 Medals
2 days ago
16 Replies
5 Medals