Ask your own question, for FREE!
Mathematics 50 Online
jamessimmons:

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?

Vocaloid:

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!
Latest Questions
SwaggyMark: Need help on process of annuity problem
38 minutes ago 3 Replies 0 Medals
SwaggyMark: Need guidance on how to solve this annuity problem
56 minutes ago 25 Replies 1 Medal
Nina001: Tips for acid reflux
22 minutes ago 3 Replies 0 Medals
gelphielvr: How would you write Dinitrogen disulfide?
5 hours ago 3 Replies 1 Medal
xXAikoXx: What's ethos, pathos, logos?
5 hours ago 9 Replies 4 Medals
Breathless: Sonic. Dead or alive. IS MINE
10 hours ago 5 Replies 0 Medals
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!