Log in to Google Classroom and join the class with code: cxrv4q
Karel Final Program
Steps to turn in to Google classroom. Turn in 1 planning document for each 2 person group. Steps 1-3 below can be included in the same document, DUE Tuesday 9/5 (15 pts).
1. Project Brainstorm:
In this project, you’ll get to combine the skills you’ve learned to paint a digital image using Ultra Karel.
In this exercise, you’ll brainstorm a few ideas for potential final projects, and think about how you might implement them. Think about what exactly you want to create. What will be the purpose of your creation? Come up with at least 3 different project ideas. For each project idea, answer the following questions:
1. What is the project idea? What will you create?
2. What is the purpose of this project idea? Why do you want to make this?
3. What are some specific functions you’ll need to write to create this project?
4. How long do you think this project will take to complete?
2. Planning your Project:
Now that you’ve decided what you’ll be creating, it’s time to use Top Down Design to break up your project into manageable problems!
Work with a classmate to figure out how you can break your project down into smaller problems that you can solve and test out one by one. We call these small problems milestones, or checkpoints. Estimate how long each of these problems will take to solve.
List out each of your milestones, and how long each will take to complete. This will help guide you when you’re writing the code for your project.
For example, in the Two Towers Karel exercise, the milestones might look like this:
1. Write code to make Karel build a single tower, and test this code. (about 20 minutes of work)
2. Write code to make Karel come back down after building a tower, and test this code. (about 15 minutes of work)
3. Write code to have Karel build the first tower and come back down, and test this code (about 5 minutes of work)
4. Write code to have Karel build both towers side by side and end on top of the second tower, and test this code (about 10 minutes of work)
Discuss your milestones with your teacher before you start to code!
3. Solve problem with Pseudocode
Before diving in and writing the code for your final project, it’s important to figure out exactly what code you’ll need to write. We write pseudocode to plan out programs at a high level, before writing actual code. That way, we can think about the problem and solve it without getting caught up in the specifics of coding. Once we have written pseudocode that solves the problem, it is much easier to translate the pseudocode into real code.
Write out pseudocode that solves each of your milestones.
Write out pseudocode for each of your milestones for your final project! Discuss your pseudocode with a partner before moving on to the coding portion of the final project. Can you explain why your pseudocode is correct? Will your solution work on Karel Worlds of different sizes?
4. Use Karel to create final program (20 pts)
Show Mr. Fornstrom the final image. DUE Friday 9/8.
Monday 9/11: Demo final digital image to the class. Include explanation of at least 1 interesting feature. What are we looking for:
– Decomposition: use functions!
– Comments: explain what sections of code do
– Control structures: use loops; decisions statements-impact of If If If vs. If … Else If
– Interesting Image!
By Friday 9/8:
– Complete the Karel Unit Test in Lesson 18, .4pts/question. Remember that “Streets” are the vertical axis, increasing from bottom to top; “Avenues” are the horizontal axis, increasing from left to right. 10 pts