Turing Assignment 1

This assignment is meant to review the basic commands and procedures used in Turing.

Before you proceed with this assignment, you should be familiar with the following commands:

This table summarizes the most common commands -- memorize it!

Command Function
put displays a variable or outputs information on the screen
get obtain a variable from a user or inputs a variable into the program
drawdot draws a dot
drawline draws a line
drawbox draws a box
drawoval draws a circle, an oval, or an ellipse
drawfill draws and fills a shape with a given colour
locate locates pixels
locatexy locates a point with co-ordinates (x  ,  y) on the screen
var reserves a space in the computer's memory for 
cls clears the screen
colorback changes the back ground colour
for and loop used to start a looping sequence -- a counter 
end for and end loop end the looping sequence or counter

Now try Assignment 1:

A. Write a program that asks for a user's year of birth, and outputs the user's age
Call this program "what's your age" -- remember to use comments and proper programming style format.

B. Write a program that displays the name of your favourite national soccer team, the country of origin, the name of the players, and possibly the team's national flag (bonus).

 

Back Home