Assignments for the Day
5 Total Programs:
– Karel the Dog: Fetch the Ball
– Karel the Dog: Delivery
– Karel: Fetch (rewrite)
– Karel: Delivery (rewrite)
– Mr Uu: Make a Sandwhich
Lightbot functions through a GUI (graphic user interface). That basically means you (the user) press icons (or graphics) to input commands. We will use GUI-based systems a lot this year. However, we won’t always use it. Understanding some basic code is also important, and we’ll begin using it as well. Last time you guys began playing with the idea of pseudo-coding and algorithms you created a simple list of steps to go from your computer to the door.
We are going to work with these concepts fairly extensively through out this six weeks and the year as a whole.
To start today, check out CodeHS. On the front page, you see Karel the Dog. To play it, you don’t need an account or to login.
I’d like you to write two programs using Karel the Dog. You can use the web application to test out your programs to make sure they work (I recommend you do so). First, write a program (Fetch the Ball) where Karel gets the ball then returns to the origin.
For a second program, write a program (Delivery) where Karel gets the ball and drops it off in the upper-right most corner.
You can either retype the code onto your blog, or you can screenshot the code and put the images on your blog if on the code is visible on the screen.
Rewrite your Karel the dog programs to be more efficient.
How? Instead of writing
we can also just write “move(5);” instead. Rewrite and repost your programs with more efficient code utilizing numbers within the parenthesis.
Using the same idea of Karel and using the same format, verb();, write a program for me to create a peanut butter sandwich. The layout of where the items will be is on the board.
Start research the history of Robotics. You’ll have a couple short reports (1 page, with a picture) you’ll do in this class. The first one needs to be a topic in the history of robotics (pre-2000). It could be a specific robot, a piece of literature that led to robotic development, a specific engineer, etc. No two students may have the same topic, so first come first serve.