We wanted to create a robot/algorithm that makes tea. I used an
oval as a 'terminator' a diamond as 'decision' a rhombus as the 'input/output' a rectangle for the 'process' and finally a arrow as the 'Flow' (as seen in chart below) Copy and paste the link into your search-bar to see the algorithm. https://drive.google.com/file/d/1BQsbcZO_cQ4vhO5eMUp9LdIgKQ7K7ZxH/view?usp=sharing Also below is a full explanation on how the algorithm works.
![](https://static.wixstatic.com/media/1f76fb_7e8ca4ae741540da8d237c71383819a3~mv2.png/v1/fill/w_510,h_680,al_c,q_85,enc_auto/1f76fb_7e8ca4ae741540da8d237c71383819a3~mv2.png)
Step 1 was making the robot start making the tea by using a terminator (oval start) and make it decide (using the diamond) if there was a cup in the cupboard if not telling the robot to find one.
![](https://static.wixstatic.com/media/1f76fb_1dede8adc63f452ba309101e9ddbc422~mv2.png/v1/fill/w_504,h_541,al_c,q_85,enc_auto/1f76fb_1dede8adc63f452ba309101e9ddbc422~mv2.png)
Step 2 was making the robot boil the kettle. I should've added a variable asking if there was water in the kettle or not but i had finished a lot of the chart before we were told to do so.
![](https://static.wixstatic.com/media/1f76fb_38dabac017af4b2099ec09cf6d184723~mv2.png/v1/fill/w_446,h_282,al_c,q_85,enc_auto/1f76fb_38dabac017af4b2099ec09cf6d184723~mv2.png)
Step 3 was added late but it still works. I told the robot to find a teabag and add it to the cup if the robot couldn't find the teabag it would end the task that was set.
![](https://static.wixstatic.com/media/1f76fb_7f4e856991144135a15781d6f5d997b4~mv2.png/v1/fill/w_721,h_376,al_c,q_85,enc_auto/1f76fb_7f4e856991144135a15781d6f5d997b4~mv2.png)
Step 4 is to get the milk out of the fridge and add it to the cup once again if there is no milk the robot will end the task.
![](https://static.wixstatic.com/media/1f76fb_ddd541cd85ba4150b47f6b1fce535f3b~mv2.png/v1/fill/w_930,h_688,al_c,q_90,enc_auto/1f76fb_ddd541cd85ba4150b47f6b1fce535f3b~mv2.png)
Step 5/6 is step 4 but a little more advanced I told the robot to get the spoon out of the drawer and if it can not find one I told it to 'find soon' if it finds a spoon in either the drawer or anywhere that it searches then it'll move onto step 6 which is add sugar to spoon if it cannot find it once again it'll end the task but if it does then it'll add sugar to the cup as commanded.
![](https://static.wixstatic.com/media/1f76fb_652beb3807cc4a9688956b5d4b7ce2f4~mv2.png/v1/fill/w_929,h_732,al_c,q_90,enc_auto/1f76fb_652beb3807cc4a9688956b5d4b7ce2f4~mv2.png)
And the final 2 steps is to add the water from the kettle to the cup and repeat if needed.
![](https://static.wixstatic.com/media/1f76fb_4362652f1e494cab8c3659f1af89b224~mv2.png/v1/fill/w_925,h_313,al_c,q_85,enc_auto/1f76fb_4362652f1e494cab8c3659f1af89b224~mv2.png)
The algorithm isn't 100% accurate because 1. people like tea certain ways for example with 1 maybe 2 sugars or maybe even none. Also in the algorithm it says 'Find sugar' 'Find spoon' etc which isn't accurate but i was instructed to leave it as a simple chart so that's what i did :)
Comments