Review the basics of writing functions here: Functions Tutorial:
For each of the following exercises, first write the function in
Pseudocode and then implement it and test it in App Inventor. Post
your solutions to this homework on a Portfolio page.
For example, factorial(4) would return 24, which is 4 * 3 * 2 * 1 or 1 * 2 * 3 * 4.
factorial(N) = 1, if N = 0
factorial(N) = N * N-1 * N-2 * ... * 2 * 1, if N > 1.
Getting Help
The TA is available to help you on this assignment between
9-10 PM on Tuesday and Thursday evenings in MCEC 136.