Ask
your own question, for FREE!
Mathematics
35 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
Shadow:
Hello QuestionCove Users! Today we are officially announcing two promotions to our staff, @eiwoh2 (Howie) as our new Senior Moderator, and @axie as our new
Arizona:
I'm Doing the ACT testing tomorrow which I feel like I don't even want to try but my friends are making me.
Twaylor:
NASA's Artemis II will be going around the moon today at exactly 1 pm EST (right now) https://www.
lovelove1700:
I need help with this song. I just need the lyrics for the song, nothing more. I need it for a school project.
ARAAG:
I need help working on new song lyrics and ideas! If anyone could help me that wo
lovelove1700:
u00bfA quu00e9 hora es tu clase?Fill in the blanks Activity unlimited attempts left Completa.
9 minutes ago
16 Replies
5 Medals
6 hours ago
4 Replies
1 Medal
21 minutes ago
1 Reply
0 Medals
22 hours ago
0 Replies
0 Medals
27 minutes ago
3 Replies
0 Medals
1 day ago
0 Replies
0 Medals