Quick Index
Overview


In this challenge, you are given three problems. You choose one of the three and complete that problem.

Before starting, it is helpful to work through this chapter's examples.

Objective


Get some exercise writing algroithms

Instructions


Make a new working directory on your computer named "Algorithms".

Choose one of problem 1, problem 2 and problem 3 (described below).

In directory "Algorithms", create one new file that corresponds to the problem you choose:


NOTE WELL -- these files are plain text files (with extension ".txt"). They are not formatted files.

Put your work for the problem into the corresponding .txt file (that you just created).

It is a good idea to validate your algorithm solution. You can do this by "walking through" the solution and re-checking it.

There is [no] program compiling or program running involved in this challenge.

Problem 1 - Write Algorithm 'Make Toast'


Problem Statement:


Your Algorithm Reader:


Given:


Notes



To help get started, here are some example steps you might insert somewhere into your algorithm (consider each example step independently -- not as a group):


Problem 2 - Write Algorithm 'Make Tomato Sandwiches'


Problem Statement



Note: we define a tomato sandwich as two slices bread (toasted) with inward sides of bread buttered. The sandwich contains two slices of tomato, each with a touch of pepper.

Your Algorithm Reader:


Given



Notes



Hint -- assume that we have another (existing) algorithm available called "Make Toast" that will do the work for us of making toast (and buttering bread) and you can simply say something like this:

Call algorithm "Make Toast"

"Make Toast" gives us one slice of bread to us (toasted and buttered). Cconsider calling it multiple times -- if needed.

To help get started, here are some example steps you might insert somewhere into your algorithm (consider each example step independently -- not as a group):


Problem 3 - Write Algorithm 'Make Zip File'


Problem Statement



Your Algorithm Reader:


Given


Assume none of the files/directories exist before starting

First Set of Available Tools:


Second Set of Available Tools (these are the commands we have available -- all of these commands are in the "file browser" and apply to the current directory and are available via the "popup" or "right click" menu):


Notes:



To help get started, here are some example steps you might insert somewhere into your algorithm (consider each example step independently -- not as a group):


Submitting