Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Assignment
Synopsis

In this assignment students work either individually or in pairs to create ASCII art using loops. Students must write functions that print a rectangle, a triangle, bumps of increasing size, a diamond, and a striped diamond. In addition to requiring students to use loops, this assignment reviews basic parameter passing. It is particularly useful for students who are new to loops.

Recommendations

Incorporate pair programming when it is appropriate for students to collaborate on a lab. In pair programming two students work side-by-side at the same computer. The “driver” controls the mouse and the keyboard, while the “navigator” makes suggestions, points out errors, and asks questions.

Engagement Highlights

Uses common images from students' everyday experience to Employ Meaningful and Relevant Content.

Materials and Links

Materials

Computer Science Details

Programming Language
Python

Material Format and Licensing Information

Creative Commons License
CC BY-NC