Week 3 – James

 

Hi – it’s James again. This is what happend in robotics class this week.

We discussed what pseudocode means and it means detailed steps that can be used to write actual code.  It could be written in a different language like French or Spanish or any other language in the world and is a helpful guide to not forget steps. Click here to see the others

After that, we looked at a PB+J sample of what to do to make a PB+J sandwich. ( PB+J means Peanut butter and Jelly incase you were wondering). There were 3 students and they wrote some pseudocode of how to make a PB+J sandwich. All there students were wrong but this is a solution below.

  1. Take exactly two pieces of bread.
  2. Take one piece of bread that is not covered with peanut butter on any side and use a knife to spread peanut butter on one side
  3. Take a second piece of bread that is not covered with jelly on any side and use a knife to spread jelly on one side
  4. Place the jelly side of the second piece of bread against the peanut butter side of the first piece of bread
  5. Place the combined pieces of bread on plate

Next, we had a challenge using pseudocode to get around a square going left around the square. Richard said that I had the best code. I also was the first one to do it. The code I wrote is down below.


The pseudocode challenge was very hard because it took like 15 times to make it work. Thats how hard it was. So now, our adventure continues.