Back to College
Well christmas is over and its back to college, but it has been snowing on and off for weeks and today …..
it is snowing and growing the Hub has shut down college and the buses have stopped running at 11am everybody has been building snowmen and doing crazy stuff in the snow and half the street is building snowmen.
All the fellow class mates have been recieving E-mails from the tutors telling us to look on blackboard and on there is a list of all the assignments we are going to have through out the year…. Having not checked the website to see what has been happening there is two assignment looming and got to be finished by the end of next week!!!
So its straight back in to it with the Pascal assignment first on the list. We have got three choices to create and write a program:
- 1: Create a program that allows the user to enter a name, age and town of birth.
- 2: Create a program which allows the user to enter their name, favourite film and how many times they have seen it.
- 3: Create your own program where the user enters three variables from the keyboard which are then output to the screen.
The creator has to use variables, then print out the code and annotate, and ensure you use the appropiate documentation to support your program. I have already done one of the programs in my last Pascal posting. Which was to create your own program. What we will do is create the other two so they are all covered.
Create the whole program as a tutorial which will cover the annotate part, and as for the appropiate documentation ?? I’m not sure yet..
But for all you budding Pascal programmers here’s a little gift.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | PROGRAM town; USES CRT; VAR name:string; age:integer; townOfBirth:string; BEGIN CLRSCR; {-- CLEARS THE SCREEN --} WRITELN('What is your name ?'); {-- asks the user their name --} READLN(name); {-- The program reads the variable name --} CLRSCR; WRITELN(name,' how old are you ?');{-- prints the variable stored in name and asks your age --} READLN(age); {-- stores the variable age --} CLRSCR; WRITELN(name,' what town was you born in ?'); READLN(townOfBirth);{-- stores the variable town of birth --} CLRSCR;{-- clears the screen --} WRITELN(name,' you are ',age ,' and was born in ',townOfBirth); READLN; END. |
This being the first assignment in Pascal is very basic but the progamming language is quite easy to learn compared with the c# and php which I keep trying.

