This was Wrote Just for my Wife Cindy Hardy, but I decided to Upload it to the internet for download!!!
This Tutor was written to be used with Amityville Pascal and Borland Pascal 7...
![]() ©Copyright October 31st, 2001 ®All Rights Reserved... E-Mail mchardy@fidnet.com or cindyhardy55@msn.com |
![]() |
Table of Contents |
Programming in Pascal The Easy Way!!! |
SECTION 1 |
|
Getting Started | start here... |
Example 1 | your first Pascal program |
Example 2 | cost of buying stamps |
Designing Programs | the four design stages |
Example 3 | cost of a bus journey |
Example 4 | garden fencing |
Example 5 | darts scores |
Example 6 | student test results |
Example 7 | soccer team points |
Text Variables | string data type |
Example 8 | input name and age |
Semicolons | semicolon as a separator |
Example 9 | percentage test result |
Example 10 | sales of chips |
Example 11 | average race times |
Decisions, decisions... | IF...THEN...ELSE statements |
Example 12 | old enough to vote? |
Example 13 | exam - pass or fail |
Example 14 | guess the capital city |
Example 15 | electronic scoreboard |
Example 16 | calculating income tax |
Over and over... | different types of loops |
The Unconditional Loop | average exam marks |
The Conditional Loop | the guessing game |
Example 17 | the guessing game again... |
Example 18 | the guessing game again with clues |
SECTION 2 |
|
Procedures, procedures.. | the need to use procedures |
Example 19 | different flavours of chips |
Example 20 | capital cities again... |
Example 21 | invoices and sales tax |
SECTION 3 |
|
Arrays | the need to use arrays |
Example 22 | read in students' test marks |
Validation | the need to validate data |
Rounding... | rounding and truncating |
Example 23 | painting a room |
SECTION 4 |
|
Functions and Parameters | what are they? |
Example 24 | using functions |
Validation again... | using Boolean results |
Procedures and Parameters | source data and results data |
Example 25 | actual and formal parameters |
More on Parameters... | local and global parameters |
SECTION 5 |
|
Files and File Processing | storing data on disk |
Text Files | writing to and reading from text files |
Typed Files | writing to and reading from typed files |
Example 26 | creating a file of student records |
SECTION 6 |
|
Sorting | the need to sort data |
Example 27 | the bubble sort |
Recursion | powerful....but what is it? |
APPENDIX 1 |
|
The Final Challenge... | updating one file from another |
All Graphics, Text, Images, Samples, Experiments, and Programs are all Properties of Mike and Cindy Hardy ©Copyright October 31st, 2001 by CyberNet SoftW@re Designs ®All Rights Reserved...