Activities and Exercises

Lesson 1 Exercises:

Create a program which outputs the following character string forever: "The Alluring Turing"

Lesson 2 Exercises

Re-code the "Sum" program to compliment the newly learned keyword phrase 'exit when' which should always instead of 'exit' inside an if statement.

% The "Sum" exercise
% Prompts the reader to perform an arithmetic calculation
% Fill in the Blanks
var sum : int
loop
	put "1 + 1 = " ..
	get sum
	_________________
___ loop
put "Good job!"                  
			

Project One

Technical Difficulties...

1) Code a program which endlessly outputs "Hello, world.". Attempt to stop the execution and explain how you achieved this.

Giving a limit to Infinity

2) Code a program to fit the following needs:

1
2
3
1
-1
-3                                            
			

Guessing Game

Create a simple guessing game which prompts the user to enter the name of a farm animal. The user cannot exit the conditional loop until he succesfully guesses the correct animal. The code can be no more than ten lines not including blank lines or section headers.

Think Bigger

Code a program which will ask the user for an unlimited list of numbers. Exit when the number entered is larger than the previous number.

Valid XHTML 1.0 Strict Valid CSS! Valid CSS!