Ask
your own question, for FREE!
Mathematics
12 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
Kimmee1001:
Who or what is ultimately responsible for Romeo and Juliet's deaths?
EdwinJsHispanic:
is it normal to have high expectations, like expecting your partner to have time
gelphielvr:
Advice for cramming 70 vocab terms each week? Taking med term this year and we have to memorize about 70+ vocab terms per week and im having trouble studyin
EdwinJsHispanic:
I lowk need help deciding what I should write/type on this essay about why teache
GRIZZLEY19:
Let me know what y'all think about the story Image waking up and seeing a family in the dark.
VERNEISH:
Two objects are moving along separate linear paths where each path is described by position, d, and time, t.
10 hours ago
1 Reply
0 Medals
1 day ago
4 Replies
1 Medal
1 day ago
4 Replies
0 Medals
14 hours ago
3 Replies
0 Medals
22 hours ago
22 Replies
6 Medals
1 week ago
1 Reply
0 Medals