w8.2.9: Pseudocode and Algorithms - Final Project: 1. Planning Stage
w8.2.9: Pseudocode and Algorithms - Final Project: 1. Planning Stage
✅ 1. Planning stage
1. Plan the program algorithm. You should write it in pseudocode, using plain words
to outline the step-by-step of the algorithm.
START
import radio
radio.config(group=40)
radio.on()
while True:
message=radio.receive()
if message:
display.show(Image.HEART)
sleep(1000)
if button_a.was_pressed():
else:
display.clear()
if accelerometer.was_gesture('shake'):
STOP
2. Explain how you will incorporate Boolean operators (AND, OR, NOT). Your program
should include at least one Boolean operator.
____First of all, you need to include a boolean, to include a boolean you need to know
how to use it. You have to add AND, OR, , or NOT in your coding
3. Create a flowchart to represent your algorithm. You can use shapes or hand-drawn
illustrations (take a picture of it and include it below).
5. Test, evaluate and improve your algorithm. What improvements can you include?
Maybe we made it a bit too bland, I think we could add more interesting codes to it
but if the code works, it works. If we can, we can simplify the code and make it
easier.
✅ 2. Execution stage
👉 Write your program in MicroPython.
Add a screenshot below:
7. Explain how you checked for errors during the program development.
I have checked errors by asking for hints and we’ve also been overlooking it. We’ve mostly
been testing and adding more codes to make it better.
8. Explain how a linear search works. How would a computer locate the letter that the
binary number represents?
Linear search is when you tell the computer to find an exact thing and if it's not right, the
computer will keep trying to find it until it finds it. To let linear search locate the letter that
binary number represents, the computer would just keep searching for it until it finds it.