mit-app-inventor

RecursionTemplate

About this app

The RecursionTemplate app is a template for implementing recursive procedures to calulate factorial, Fibonacci number, and combinations. The default return value (before implementing each function) is n. Move sliders to recursively calculate factorial(n), fibonacci(n), and C(n, k).

Code

RecursionTemplate blocks

Recursion

The template is for implementing recursive procedures to calulate factorial, Fibonacci number, and combinations defined as follows:

Description Definition
Factorial
Fibonacci
Combinations (see Pascal’s Triangle)

Designer

All components retain their default properties, — except all sliders have a MaxValue of 12, a MinValue of 0, a ThumbPosition of 6, and Width and Height set to Fill parent... where necessary to center UX components.


🔗 permalink, 🔩 repository, and MIT AI2 logo .AIA for this page.