n301/cs18algorithms
n301.tplt
Algorithm
We already know this is an idea behind a program
And a program is the expression of an algorithm in some computer language
Using algorithms
Relate algorithms to:
- memory (Input/Output)
- operators (ALU)
- variables (Memory)
- conditions (PC)
Miracle summary
Using Miracle Table to understand algorithms
Creating the algorithms:
Create a program that will print out "Hi world" to a form output window
Additional challenges
Create a program that will print out "Hi world" to a user output window.
Another challenge
Create a variable called userName, Ask the user her name, store that value in userName, and print "Hi " and the value of userName to the form.