Tinker: a programming by Demonstration System for Beginning Programmers by Henry Lieberman Media Laboratory Massachusetts Institute of Technology


Procedures With Arguments Can Do Something Different Each Time



Download 177.19 Kb.
Page6/15
Date06.04.2021
Size177.19 Kb.
1   2   3   4   5   6   7   8   9   ...   15
Procedures With Arguments Can Do Something Different Each Time

Tinker takes the concept of a procedure as a remembered set of actions and generalizes this to a procedure which can be given arguments, enabling the remembered sequence of steps to do something different each time it is invoked. This involves introducing the concept of a variable, a name used to denote an object that can be different each time the procedure is used. A procedure that takes arguments is defined by presenting an example of the procedure, with a specific value for each of the arguments. Tinker creates a new for each argument. The user then demonstrates to Tinker how to use the arguments to perform the procedure.





Share with your friends:
1   2   3   4   5   6   7   8   9   ...   15




The database is protected by copyright ©essaydocs.org 2020
send message

    Main page