Execution
- Kid executes one instruction at a time
Add 3, 5 and remember as C
C = 3 + 5
-
A step will have calculations and/or remembering
-
To speak with kid follow the below structure
-
What kid knows
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- integer Division
- Quotient (//)
- Remainder or modulus (%)
- Division (/)
- equals (==)
- less than (
<) - less than or equals
<= - gt (
>) - ge (‘>=)
- assignment (
=)
-
Make this kid convert kilos into pounds
Remember 15 as kilos `kilos = 15`
calculate 2.20462 * kilos and remember as pounds `pounds = kilos * 2.20462`
Say pounds
- Make this kid calculate simple intrest
Remember 100000 as principal
Remember 24 as rate
Remember 3 as time
calculate principal * time * rate / 100 and remember as si
say si
calculate principal + si and remember as total
say total
- Make this kid convert miles to kilometres
Remember 100 as miles
calculate 1.60934 * miles and remember as kms
say kms
- Make this kid convert farnheit into celcius
