An introduction to programming
by Halit Celik & Sylvain Fankhauser
Wikipedia
(hint: I'm sure you do!)
Wikipedia
Specific task: place a phone call
Instructions:
1. Take phone
2. Place call
I don't know how to do that!
What number should I call?
Specific task: place a phone call to 079 719 14 66
Instructions:
1. Take phone
2. Press power button
3. Unlock phone
4. Locate "phone" app
5. Touch "phone" app icon
6. Dial number (touch "0" key, touch "7" key, etc.)
7. Touch "call" icon
I don't know how to do that!
Specific task: place a phone call to 079 719 14 66 with unlock code 123
Instructions:
1. Take phone
2. Press power button
3. Swipe up
4. Touch "1" key
5. Touch "2" key
6. Touch "3" key
7. Touch "OK" key
8. Locate "phone" app
9. ...
🤖👨💻👩💻
Repetitions and conditions are very useful when writing a program!
Program is waiting for a user interaction...
Click | Keyboard | Hover | Other? |
---|
Where did the event happen?
Button | Text Input |
---|
Which button is that?
Go to the box 1 and increment the existing number by 1
Example of a sequence
Go to text input 1 and take the value!
Keep it in mind!
Then go to text input 2 take the value.
Now multiply first value with the second one.
But... What if there is no value in the text input?
If there is no value, insult the user.