Ask your own question, for FREE!
Mathematics 72 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
Coyote: Finding central angle measure
6 minutes ago 1 Reply 0 Medals
luvnickk: If yalll fw the weeknd your a 10 !!
12 minutes ago 13 Replies 2 Medals
Ash2746: Anyone know anything interesting about the Cold War?
27 minutes ago 11 Replies 2 Medals
Austinsbabygirl4life: Texas schools look funn
53 minutes ago 6 Replies 2 Medals
chuu: Is it (Hunt 30-31) or (Hunt 30-1) in MLA?
2 hours ago 1 Reply 0 Medals
luvnickk: what typa music yall listen to ?
1 hour ago 28 Replies 3 Medals
GothgirlLillian: Is music considered art?
1 hour ago 8 Replies 0 Medals
luvnickk: am newwww
14 hours ago 0 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!