Download Interactive Counting Model

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Open Database Connectivity wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Concurrency control wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Database wikipedia , lookup

Relational model wikipedia , lookup

Functional Database Model wikipedia , lookup

Clusterpoint wikipedia , lookup

Database model wikipedia , lookup

Transcript
Interactive Counting Model
SPANISH LANGUAGE PROGRAM TO COUNT FROM ONE TO ONE HUNDRED.
Easily Learn Database Procedures. Create database files on disk. Linguists, other than students, can access applications and edit specific
language Databases.
Macintosh Database or Spreadsheet. Use integrated software to enter data. Enter units and tens. Create language counting files.
DOS Database. Select FORM to prepare custom data input formats on screens. Store input FORMS on language disks.
Web Access. Transfer data. Use SQL.
Database. Units, Teens, Tens. Create initial database files.
DEFINE. Spanish Unit Numbers
One Field. Add a units term in one column position of Database records (See Figure 25). Name the field "unitspos". Enter data to create
ten records. Create a Database file for the units positions
(Fig. 25).
UNITS TENS
TEENS
Countinguno
Fig. ,diez
25
,once
uno
dos
,viente
,doce
MODIFY
THE
DATABASE
FILE.
dos
tres
,trienta
,trece
tres
cuatro ,cuarenta ,catorce
cuatro
cinco ,cincuenta ,quince
cinco
seis ,sesenta ,diez y
seis
seis
siete
siete ,sentena ,diez y
ocho
siete
nueve
ocho ,ochenta ,diez y
diez
ocho
nueve ,noventa ,diez y
nueva
diez ,
,
Counting Fig. 26
MODIFY database records created in Fig. 25. DEFINE two new data fields as tens and teens as in Fig. 26.
Other Columns. Describe tens alphabetic terms fields in new database files. Add fields for:
1. Tens. Enter verbal description tens and teens.
2. Hundreds.
3. Create a file for models. FTP. Students at a residence access freenet files.
CONVERT DATABASE FILE FOR BASIC COUNT MODEL.
1. RUN EDLIN. Delete the first ten records of (.dbf) database files which contains only specific Database codes. The remaining ten
records for the cardinal numbers contain three Gwbasic data fields used by COUNT programs.
2. EXPORT files from DOS Database services to FLASH memory. IMPORT or INSERT into Word Processing documents without file
headings.
3. Use an Access SQL.
Results are as in Fig. 26. The file is ready. Read the file into three program DIMension statement arrays of units, tens and teens alphabetic
descriptions.
BASIC PROGRAM TO CREATE INPUT FILE.
COPY Compiler. Code input programs. Create input files on disk for models.
Program to Count in Spanish. Count from one to ten, from eleven to nineteen and then from twenty to one hundred. Set up a computer
program model. Set up three data arrays of ten descriptive verbal lists. Set up these three groups as three data fields on ten records on a file.
Edit the records on the data file. Verify the spelling of the words. Read these three data groups from the file (See code line number 80,
UN$, TE$, TEEN$). Set up program arrays in computer memory.
176
Interactive Counting Model
Enter number:
Funf und Zwanzig
Correct (German)
Enter number:
un
Correct (French)
Enter number:
trente
Correct (French)
Enter number:
trente un
Correct (French)
Counting Fig. 24 a
Translate Numbers. Enter numeric keys to retrieve cardinal numbers. Use this program for any language. Change files for the language to
be studied. Copy specific files. Edit the data input. Create data files. Students do not need to be familiar with his computers software. RUN
this simple program on any home computer (See Computer Conversion in Chapter 8). Practice entering numbers into computers.
BASIC COUNT MODEL SCREENS.
Change program line numbers, program names or dialogue boxes. Code program models. Enter numbers. Check the spelling of units and
teens words in one routine.
Other Compound Numbers (such as twenty three). Check the spelling of the words in the tens position first. Then check the units spelling
next. Some examples are in Figure 24 a and b. COUNT programs can be used in multi-cultural environments. A large number of languages taught can be very large, depending upon what is in vogue.
Enter number:
quarte vingt un
quarte vingt dix et un
soixante
Correct (French)
Instead of ninety, in French quatre vingt dix has two spaces in the alphabetic spelling.
Enter number:
dwanziescia osiem
Correct (Polish)
Enter number:
cincuenta seis
Correct (Spanish)
Counting Fig 24 b
The connector "et" is needed for "un" in the equivalent of ninety one. On a match, display the word
If spelling or word order errors are made, then
"correct"
display
"retry"
Establish exercises to recognize of verbal numbers
quickly.
Program use the transition file created by EDLIN with the (.doc) extensions.
COUNT
10 DIM UNITS$(10), TENS(10), TEENS$(10)
20 PRINT TAB(20) "count to 100 "
30 INPUT "enter language:"; LANG$
40 FILENAME$= "a:\database\"+ LANG$+"\transito.doc"
Transitory files are created on the language subdirectory.
Commas separate data fields on each line. Each line corresponds to a record on a file, in this case.
177
Interactive Counting Model
50 OPEN "i",#1, FILENAME$
60 IF EOF(1) THEN 260
70 CTR=CTR +1
80 INPUT #1, UN$,TE$,TEEN$
There are three data fields in this file. The file should be deleted if errors occur. Select Database to edit errors. IMPORT new files for
programs if necessary.
90 Y=5+CTR
100 X=10
110 LOCATE Y,X
The locate positions the units on screens.
Use a Dialogue box instead
120 UNITS$(CTR)=UN$
130 PRINT UNITS$(CTR)
140 X=23
150 Y=5+CTR
160 LOCATE Y,X
The tens position is positioned.
170 TENS$(CTR)=TE$
180 PRINT TENS$(CTR)
190 X=40
200 Y=5 + CTR
210 LOCATE Y,X
230 TEENS$(CTR)=TEEN$
240 PRINT TEENS$(CTR)
250 GOTO 60
260 CLOSE #1
270 Y=4
280 X=10
290 LOCATE Y,X
300 INPUT "ready to proceed? enter number ";PRO$
If the file is proof read correctly, then RUN the program.
310 IF PRO$="end" THEN 810
320 CLS
330 X=30
340 Y=5
350 LOCATE Y,X
360 PRINT TAB(20) "count in ";LANG$
370 Y=10
380 X=20
390 LOCATE Y,X
400 NUM$=PRO$
410 PRINT PRO$
420 NUM1$=LEFT$(NUM$,1)
430 NUM2$=RIGHT$(NUM$,1)
440 NUM1=VAL(NUM1$)
450 NUM2=VAL(NUM2$)
460 IF LEN(NUM$)= 2 THEN 540
470 FOR UN1=1 TO 9
480 IF NUM1=UN1 THEN 520
490 NEXT UN1
500 PRINT TAB(20);"error"
178
Interactive Counting Model
510 GOTO 270
520 PRINT TAB(20) UNITS$(UN1)
530 GOTO 270
550 IF NUM1$="1" THEN 680
560 FOR NU= 1 TO 9
570 IF NUM1=NU THEN 640
580 NEXT NU
590 PRINT TAB(20) "error"
600 FOR I=1 TO 9
610 PRINT TENS$(I)
620 NEXT I
630 GOTO 270
640 PRINT TAB(20) TENS$(NU);" ";
650 IF NUM2=0 THEN 270
660 NUM1=NUM2
670 GOTO 470
680 IF NUM2=0 THEN 690 ELSE 710
690 PRINT TAB(10) UNITS$(10)
700 GOTO 270
710 FOR NU=1 TO 9
720 IF NU=NUM2 THEN 790
730 NEXT NU
740 PRINT "error"
750 FOR I=1 TO 8
760 PRINT TEENS$(I)
770 NEXT I
780 GOTO 270
790 PRINT TAB(20) TEENS$(NU)
800 GOTO 270
810 END
Program Figure 27.
179
Interactive Counting Model
175