Karel is starting a painting company! Karel’s first job is to fix all the paint on the fences in Karel’s neighborhood. All of the red paint should actually be blue, and all of the blue paint should actually be red. Write a program that has Karel move along the first street and change all the red squares to blue, and all the blue squares to red. The world will always be 10 avenues wide. Make sure your program works on each world! Note: Be sure to include comments for all functions that you use or create.
Answer options:
1. Write the program in Karel code.
2. Explain your program’s logic.
3. Create a flowchart of your solution.
4. Test the program on different worlds.