top of page
Search

Tea algorithm

30034350

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.

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.

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.

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.

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.

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.

And the final 2 steps is to add the water from the kettle to the cup and repeat if needed.

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 :)

129 views0 comments

Recent Posts

See All

Boat game

Robot Wars

Rouge Robot We are making a robot which has a claw, pincers and back support in case we are attacked from behind. 1st problem was that...

Comments


©2019 by ElliotBGDAIR. Proudly created with Wix.com

bottom of page