• Dalton Seal

      Seal in Royal Blue

Dalton News

How to Make Sun Butter & Jelly Sandwiches Using Pseudocode

High School students in Juliet Garbasz's '14 Computer Science Class recently paired up to make sun butter and jelly sandwiches in the Teaching Kitchen by writing pseudocode (informal instructions that describe the key elements of a program for yourself and other programmers).
Before arriving at the kitchen, students wrote their own pseudocode programs on how to make a sandwich. Students explored how to create readable and precise code using various coding techniques. The objective demonstrated how "computers" (mis)interpret sandwich instructions. 

One student played the role of programmer, relaying instructions using a combination of code and text to explain the sandwich-making steps clearly. Their partner represented a computer and followed the programmer's directions verbatim without the ability to make assumptions.

The specificity of the directions led to a variable sandwich assembly process filled with hilarious actions and unexpected results!
Back

Grades K-3

53 East 91st Street, New York, NY 10128

Grades 4-12

108 East 89th Street, New York, NY 10128

Physical Education Center

200 East 87th Street, New York, NY 10128

Contact Info