64 <p1
<POJL
Wolstrup article: Soccer SecretaryPage ###
<PEJL
Wolstrup article: Soccer SecretaryPage ###

<jl
Lance Wolstrup
20311 Sherman Way #101
Canoga Park, Ca. 91306
(818) 716-7154



<l2
<jc
SOCCER SECRETARY



<jb
Out of the goodness of your heart, you have volunteered totake the job of "soccer secretary" for your child's LittleLeague. However, now that the applause for your noble gesturehas died down and you've had a chance to take a closer look atwhat being "soccer secretary" entails, you've started to thinkmaybe "sucker secretary" would be a better title for the job!
Soccer has become increasingly popular in this country.Everywhere you look kids of all ages are playing the game inorganized leagues--and most of these leagues contain many teamsand divisions. And guess who now has the time-consuming job ofkeeping track of all the scores and preparing up-dated standingssheets for each division on a regular basis? YOU do!
Having been a professional soccer player for ten years beforeI turned to the more sedentary art of computer programming, Ifigured being soccer secretary for my son's Little League wouldbe a snap--so I opened my big mouth and volunteered. I soondiscovered something about myself: I have a natural aversion todoing tedious calculating and paperwork by hand.
Hence SOCCER SECRETARY was born!
Let's examine what we're up against:
After each game-day, the soccer secretary (that's YOU) ishanded a stack of papers containing the scores of all the gamesplayed by all the teams in each division of the league. Thesescores have to be entered and an updated standings sheet foreach division has to be prepared.
The winning team gets 2 matchpoints; the losing team gets 0matchpoints. If the game ends in a tie, each team gets 1matchpoint. The team with the most points is in first place.
However, since two or more teams often end up with the samenumber of points, then the deciding factor is the GOALDIFFERENCE. The goal difference is the total number of goalsscored by the team in all the games minus the total number ofgoals that has been scored against them in all the games.
Therefore, a good Soccer Secretary computer program must beable to do the following:
1. Organize as many divisions as needed and store the datafor each division in a separate set of files.
2. Enter scores in a particular division and automaticallyupdate Games Played, Games Won, Games Tied, Games Lost, GoalsFor, Goals Against and Points.
3. Print out a current standings sheet at any time for any orall divisions.
4. Print out all scores for any or all divisions.
5. Go back in and edit any mistakes made in entering thedata.
6. Generate standings that reflect the changes.
7. Display all the filenames on the screen whenever desired.
SOCCER SECRETARY meets these requirements.
SOCCER SECRETARY will make your League record-keeping moreefficient and more fun.
Here's how it works:

<jc
THE MAIN MENU


<jl
1. Organize Divisions
2. Enter Scores
3. Print Standings
4. Print Scores
5. Edit Data
6. View Filenames
7. Exit Program

<jb

Let's go over these options in detail.

1. Organize Divisions:
Use this module when you first set up the league.
Step (a) You will be prompted to enter a new divisionfilename. If you find yourself in this module by mistake, don'ttype anything. Press {ENTER} to return to MAIN MENU.
Filenames must start with a letter and be 8 characters orless. DO NOT USE AN EXTENSION. The computer will rejectfilenames that do not meet these criteria and will return you tothe beginning of step (a).
Type name of division. Abbreviate if necessary. (For example,DIVISION 1 NATIONAL CONFERENCE could be abbreviated to"DIV1NC"). Press {ENTER}.
Step (b) The program will prompt you:
Filename ---} DIV1NCIs that correct (Y/N)?
"N" returns you to step (a).
"Y" takes you on to step (c).
Step (c) Prompt: How many teams in the division (10 max)?
Select number of teams. Press {ENTER}. Pressing {ENTER} withouta value returns you to the MAIN MENU.
Step (d) Prompt: Type name of team #1. Do this. Press{ENTER}. Continue the process by typing in the names of theother teams. Pressing {ENTER} without a team name returns you tostep (c).
Editing: Once all the team names have been entered, you'llget a chance to edit any mistakes. To correct a team name, typein the number of that team and then correct. When your editingis complete, type 0 and press {ENTER}.
At this point SOCCER SECRETARY creates a diskfile with thenames of the teams and their starting statistics (which ofcourse is 0 for everything). Then you will be returned to theMAIN MENU.


2. Enter Scores:
Use this option to enter all the scores.
Step (a) Prompt: Enter division filename?
Type in the filename of the division you wish to update andpress {ENTER}. Pressing {ENTER} without data returns you to theMAIN MENU.
The next prompt: Correct (Y/N)? allows you to retypefilename.
"Y" loads the file into memory and displays the teams on thescreen.
"N" returns you to the beginning of step (a).
Step (b) Prompt: Enter number of hometeam?
Type number of hometeam. Press {ENTER}. Pressing {ENTER} withoutdata returns you to step (a).
Step (c) Prompt: Enter number of visiting team?
Type number of visiting team. Press {ENTER}. Pressing {ENTER}without data returns you to step (b).
OUT OF DIVISION/OUT OF CONFERENCE TEAMS:
If one of the teams in the division is playing anout-of-division or out-of-conference opponent, use the divisionteam as the HOMEteam. After the prompt "Enter number of visitingteam:" type XX. This tells the computer program that thevisitors are out of division or conference. Three asterisks ***will be placed in front of that team's name. Next you'll beprompted to type the name of the team. Do so and press {ENTER}.
Step (d) Prompt: Type goals scored by the hometeam.
Do so and press {ENTER}. Next type in the goals scored by thevisiting team. Press {ENTER?}. Pressing {ENTER} without datareturns you to step (b).
Step (e) Prompt: Is the score correct (Y/N)?
"N" returns you to step (d).
"Y" takes you down to step (f).
Step (f) Prompt: Enter score of another game (Y/N)?
"Y" starts program over again at step (b). You can repeat thisprocedure until you have entered all the scores of all thegames.
"N" when your score-entering is complete.
The SOCCER SECRETARY program reads the scores you've enteredand automatically updates the statistics. It sorts thestandings, first by points and then, within the points, by goaldifference. The updated file is then automatically saved to thedisk.
Step (g) Prompt: Would you like a print-out (Y/N)?
"Y" gives you a print-out of the updated standings.
"N" returns you to MAIN MENU.


3. Print Standings:
Step (a) Prompt: Enter division filename?
Type filename. Press {ENTER}. Pressing {ENTER} without datareturns you to MAIN MENU.
The program will search the disk for your file. If the fileisn't found, you'll be told so and given another chance to typethe filename correctly.
Step (b) Make sure your printer is ready. Press {ENTER}.
A copy of the standings will be printed out.
Step (c) Prompt: Would you like another print-out (Y/N)?
"Y" returns you to step (a) so you may repeat the process.
"N" returns you to MAIN MENU.
<g1
4. Print Scores:
Step (a) Prompt: Enter division filename:?
Type in filename. Pressing {ENTER} without data returns you toMAIN MENU.
Next you'll get a prompt: Is filename correct (Y/N)?
"Y" makes the program search the disk for your file. If it isn'tfound you'll be told so and returned to step (a).
"N" returns you to step (a).
Step (b) Make sure your printer is ready. Press {ENTER}.
The scores of the division you chose will be printed out.
Step (c) Prompt: Would you like another copy (Y/N)?
"Y" returns you to step (b) so you may repeat the process.
"N" returns you to the MAIN MENU.


5. Edit data:
BE VERY CAREFUL USING THIS MODULE!
Step (a) Prompt: Enter division filename: ?
Type filename and press {ENTER}. Pressing {ENTER} without datareturns you to MAIN MENU.
Prompt: Is filename correct (Y/N)?
"N" returns you to step (a).
"Y" scans the disk for your file. If it isn't found you'll beinformed and returned to step (a). If the file is found, thescores will be displayed 10 games at a time.
Step (b) To EDIT, type the number of the game you want tochange. Press {ENTER}. (Type 0 if everything is correct).
Step (c) Choose between the option of editing the teams andscores, or, the option of deleting the game entirely.
To delete, type "D", press {ENTER} and at the prompt: (Y/N)?press "Y" to confirm deletion of the game. Then you'll bereturned to step (b). Pressing ANY OTHER KEY returns you to step(b) WITHOUT DELETING anything.
Step (d) Press "C" and then {ENTER}. This prompts you to typein the name of the hometeam. Pressing {ENTER} without datareturns you to step (b).
You are now prompted for the hometeam's goals. Pressing {ENTER}without data returns you to step (b).
Now you are prompted to type in the name of the visiting team.Pressing {ENTER} without data returns you to step (b).
Next type the visiting team's goals. Pressing {ENTER} withoutdata returns you to step (b).
Step (e) Prompt: Is this correct (Y/N)?
"N" returns you to step (d).
"Y" returns you to step (b).
REPEAT THIS PROCESS until all editing is done. Then press 0 and{ENTER}.
If there are more games, you will be shown the next screen ofgames and put back at step (b).
When there are no more games the program will recreate thestatistics and sort the standings according to the editedinformation. Then the updated file is rewritten to the disk.
Step (f) Prompt: Would you like a print-out (Y/N)?
"Y" print the updated standings and then asks you if you wouldlike another copy.
"N" to either question returns you to MAIN MENU.


6. View Filenames:
This option displays the disk directory for all drives.Pressing any key returns you to the MAIN MENU.


7. Exit Program:
This option ends SOCCER SECRETARY and returns you to BASIC.
 