[comp.lang.pascal] TP Sample problems for school exams

defaria@hpclapd.HP.COM (Andy DeFaria) (10/27/90)

I'm helping my girlfriend with her Pascal class.  Her exams usually consist
of "write  a program/procedure  that....".   She  seems to have  difficulty
coming up with solutions to problems (i.e. the creative part of  it.  Where
to start).  

What I'm looking for are  example problems and  maybe your short solutions.
Something like  "Write   a  procedure  to eliminate multiple   blanks  in a
string".  She has delt with the following concepts:

scalars
records
enumerations
most basic statements: :=, if, for, while, case, repeat, etc
strings
arrays
files

Your help would be very much appreciated.  Email would probably be the best
for of communication as I don't think that other readers really want to see
this.

defaria@hpclapd.hp.com