Chapter 4: Programming Concepts

View Karel programs from the book

Commands

Your First Karel Program Your Second Karel Program Your Third Karel Program Write a Karel Program Create a Pyramid

Functions

Turn Right Function Turn Around Function Move Twice - Starter Code Move Twice - Solution Three Boxes

Loops

For Loop - Move 8 For Loop - Move 39 Move Put x 10 Move to Wall - While Loop

Conditionals

Take Ball - Crash Take Ball - If Statement Take Ball - If Else

Top Down Design

Build Flags - Top Down Design

Input and Output

Python - User Input JavaScript - User Input Java - User Input Scanner Java - User Input Simple

Variables

Double Number (user input)

Parameters

Double Number (function)

Arrays

Grocery List

Objects and Distionaries

Phonebook