CSCI 150, Spring 2003

Home | | Course Schedule | | Assignments | | Lecture Notes

Lab 1 solution

Problem 1:

{Program: address.pas
Author: Brenda Student
Class: CSCI 150, section 03
Date: 1/22/03
Assignment: Lab1
Purpose: Write out name and address }

program address;
begin
	writeln('Brenda Student');
	writeln('1234 College Ave');
	writeln('Worcester, MA  01610');
end.	{end address program}

Problem 2:

{Program: shoe.pas
Author: Brenda Student
Class: CSCI 150, section 03
Date: 1/22/03 
Assignment: Lab1
Purpose: Get shoe size and comment on it. }
Program shoe;
var
	shoeSize: string;		{Size of user's shoe}
begin
	writeln('What is your shoe size?');
	readln(shoeSize);
	writeln('Whoa! A ' + shoeSize + ', that is BIG!');
end.  {end of shoe program}