Ask
your own question, for FREE!
Mathematics
29 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
xXAikoXx:
A fiction book's main ideas involve the ____. A. a character's conflict or problem B.
xXAikoXx:
What needs to be done before choosing and reading a book? A. Make sure it is nonfiction.
gelphielvr:
(chemistry 2 questions) 1. Differentiate between the plum pudding model and the nuclear model for the atom.
gelphielvr:
(logistics) If the king does not castle and the Pawn advances then either the Bishop is blocked or the Rock is pinned.
Tylerr:
Does anyone know of any reputable websites offering scholarships, or where one ca
vannieduval:
Yall need to make a section for boredom and random thoughts
Jayisbetterfrfr:
Sometimes I beat up myself, I block my own way I cloud all my thoughts, please go
Luna34:
Mending Glass A heart once whole, now cracked and worn, Its edges sharp, its fabric torn, A silent cry, a whispered ache, From love once real, now past the
33 minutes ago
2 Replies
1 Medal
6 hours ago
2 Replies
1 Medal
9 hours ago
4 Replies
2 Medals
10 hours ago
17 Replies
2 Medals
11 hours ago
9 Replies
2 Medals
11 hours ago
9 Replies
0 Medals
6 hours ago
5 Replies
2 Medals
4 hours ago
4 Replies
3 Medals