eXercise #3
Programmed Output
1. Write showmessage
calls which reproduce the following lines of text exactly.
- "Maybe", he
said.
- This is john's
output.
- 'The Terrace
Family'
2. Write Pascal
programs to create the following output. Your programs should use the
smallest amount of code possible. The rulers (Dashed lines) are there
for your convenience and do not form part of the output, they merely
show you the required spacing. Prudent use of FIELD WIDTH and DEC PLACES
is encouraged.
(a)--------- (b)--------- (c)---------
the the 1
albatross albatross 32767
did not did not TRUE
signify signify 11.83
(d):--------:---------:---------:--------:---------:-----
Student Age Date of Birth
(Surnam first) (Yrs) Date Month Year
3. Showmessage calls
which output the following:
- The character
'I' with 5 spaces in front of it.
- The value true
in a field of width 10.
- -72 with 2 leading
spaces.
- 173.984 In exponential
format in a field of width 15.
- 173.984 in exponential
format to four significant figures.
- -173.984 in conventional
format to two decimal places with no leading spaces.