Ask
your own question, for FREE!
Mathematics
34 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
Wolfwoods:
just a little something something. lemme know what you think ! u00a8 You make my heart flutter and when you smile the whole world stops and stares for a whi
Jaded012023:
So my Band Director (for the sake of the rest of this we'll call him bd) is leaving our highschool.
suger:
Where can i make a website to sell the things i crocet and knit can some one help
Subshilava:
Does anyone know how to see what text is on the page with inspect element without being able to click on the text in a faster way than reading each line im
Demon25:
Have you ever been betrayed by The ones that you love? Gave a B^^ your last but I
Twaylor:
WHAT TO DO IF ICE IS AT YOUR DOOR 1. You do not have to open the door. If you do, stay calm - you have rights.
2 hours ago
0 Replies
0 Medals
14 hours ago
9 Replies
0 Medals
12 hours ago
5 Replies
1 Medal
2 days ago
4 Replies
1 Medal
2 days ago
4 Replies
0 Medals
2 days ago
36 Replies
3 Medals