Welcome, Guest. Please login or register.

Author Topic: HELP! requested with Times Tables program for children  (Read 2226 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show all replies
HELP! requested with Times Tables program for children
« on: January 30, 2008, 02:47:10 PM »
Hi,

I've finally found on Aminet what I hope will be a great Times Tables program for my 6 year old daughter.

At first I was stuck because I was being told "Sorry, can not mount/find speak-handler" even though I had 'speak-handler' in L along with the required 'narrator.device' in Devs and 'tanslator.library' in Libs. What I could not find was the file 'Speak' to go in Workbench:Storage/DOSDrivers of OS3.9. The author said to search the Internet or a Workbench1.3 floppy for the file 'Speak'. Eventually I realised that he must have meant the file 'Say' and proceeded to rename the fully working file 'Say' as 'Speak'.

This has got it to past the "Sorry, can not mount/find speak-handler" report, but I now get the error at the bottom of the screengrab below.



i.e.

+++ ERROR 18 in line 21: Invalid argument to function
Command returned 10/18: Invalid argument to function


So, can anyone tell me what is wrong with this for the 'TimesTables_All.rexx' please :-?

/* All times tables */

LF=d2c(10); table.='Zero'; Praise.='Yes'
esc=d2c(27)
call table
call reply

/* test for speak handler */
DO
  address command 'assign >NIL: speak: exists'
  if rc~=0 then address command 'Mount >nil: speak:'
  if rc~=0 then do
    say 'Sorry. Can not mount/find speak-handler...';exit
  end
  else open(out,'speak:','w')
END

say 'Hello. Welcome to times table practice.'
say 'Enter X for an answer when you want to stop'lf

writeln(out,"Hello. Welcome to times tables practiss. Enter X for an answer when you want to stop.")

Do forever
  kernel=randu(right(time(),2))*1000000000
  seed1=random(0,12,kernel)
  seed2=random(0,12,kernel)
  flashcard='What is 'table.seed2' times 'table.seed1'?'
  call drill
end
quit:
say 'Exiting...'
EXIT

drill:
say 'What is 'Seed2' x 'Seed1
writeln(out,flashcard)
Do forever
  Pull answer
  if upper(answer)='X' then signal quit
  else if answer=seed2*seed1 then do
  dice=random(0,20,kernel)
/*    dice=random(0,20,seed1) */
    writeln(out,Praise.dice)
    say esc'[0;0H'||esc||'[J'
    return
  end
  else writeln(out,"Wrong. Please try again.")
end
return

table:
table.0='zero'
table.1='one'
table.2='two'
table.3='three'
table.4='four'
table.5='five'
table.6='six'
table.7='seven'
table.8='eight'
table.9='nine'
table.10='ten'
table.11='a lehven'
table.12='twelve'
return

Reply:
Praise.0='Good for you.'
Praise.1='Right.'
Praise.2='Perfect.'
Praise.3='Good.'
Praise.4='Right on.'
Praise.5='Yes.'
Praise.6='You got it.'
Praise.7='Good answer.'
Praise.8='Super.'
Praise.9='That is right.'
Praise.10='Correct.'
Praise.11='Uh huh!'
Praise.12='Keep it up! You are doing fine.'
Praise.13='Right! You will soon be an expert!'
Praise.14='Oh kay.'
Praise.15='Yes. I thought I could trick you with that one.'
Praise.16='Great'
Praise.17='Way to go.'
return
 

NOTE: The other 12 all fail with the same error at line 23. I'm feel pretty sure it's the same problem and that they just have a couple of extra lines.

Thanks very much.
A4000 Mad
 

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show all replies
Re: HELP! requested with Times Tables program for children
« Reply #1 on: January 30, 2008, 03:00:58 PM »
Yes I have thank you. I'm not after any sort of  game or fun thing. I just want a program that displays the sums for her to put the answers. The one above seems perfect with the added bonus of using 'Say' which she loves playing around with anyway.

She's quite advanced and has just started using Brain Training on her Nintendo DS. This has made her eager to learn her tables as quickly as possible. She has her own A1200 Desktop and I would like it to be able to help her :-)
A4000 Mad
 

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show all replies
Re: HELP! requested with Times Tables program for children
« Reply #2 on: January 30, 2008, 03:36:27 PM »
ARexx.... Gulp!

I've just double clicked on RexxMast in the Workbench:System drawer and it says "REXX server already active". No difference running the Times Tables after doing that. Was that what you meant to do moto?  
A4000 Mad
 

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show all replies
Re: HELP! requested with Times Tables program for children
« Reply #3 on: January 30, 2008, 05:04:32 PM »
Little Dana is happily learning her tables with a beaming smile on her face right now :banana:

The program is displaying the sums and speaking them to her. She likes hearing its comments after she gets an answer right  :-)


@ meega

That was spot on thank you very much :pint:


@ moto

Many thanks for your help :pint:


:cheers:
A4000 Mad
 

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show all replies
Re: HELP! requested with Times Tables program for children
« Reply #4 on: January 30, 2008, 07:28:29 PM »
@ Castellen

I've downloaded and tried your program. It's brilliant! Obviously addition, subtraction and division were things I would have had to find too. I won't have to spend ages filling sheets of paper with sums and marking them now mate. Her A1200 Desktop can do it all 8-)

Many thanks :pint:
A4000 Mad