< Programming a PB&J
~bitdweller
To illustrate how "difficult" it is to program (finnicky may be a better word, if my understanding of English is correct), I will add some steps:
- First, loop through all rooms, if name === "pantry", then proceed with opening its door.
- You need to account for all possible errors, if there's no knives on the drawer, then run getKnife(), which in turn may need to run cleanKnife().
- You didn't close the drawer, you may hurt yourself bumping into it.
- After returning the peanut butter and jelly, you didn't go back to the counter.
This is just for fun, not to actually "correct" you :)
Write a reply