[kde-edu]: Simple arithmetic apps
Kim Joham
kde-edu@kde.org
Fri, 14 Feb 2003 13:28:59 -0800 (PST)
I think what you are looking for is demonstrated fairly well in Tux of
Math Command (a take off of Missile Command). It is a Tux 4 Kids
project, but I think it does what you are looking for and it is 50% or
so done in development. Check out:
http://www.geekcomix.com/dm/tuxmath/ or
http://www.newbreedsoftware.com/tuxmath/
Be sure to check out the command line options, especially if you want a
specific operator. I assume that option will be in the options menu
once that is completed. What they have up there is a working version,
but not 'stable'.
Good luck,
Kim
--- John Lamb <J.D.Lamb@btinternet.com> wrote:
> Is there anything out there that does tests basic mental arithmetic
> skills (addition, subtraction, multiplication tables) for 6-8 year
> olds?
>
> To illustrate this, I knocked together a python script (below), but
> it
> would be nice to have something like this in Qt/KDE. I guess it
> wouldn't
> take even me long to write something if there's nothing already.
>
> --
> JDL
> --
> #!/usr/bin/python
> import whrandom
> def test_int( s ):
> if len( s ) == 0:
> return 1
> for char in s:
> if char not in "0123456789":
> return 1
> return 0
> def get_int( x ):
> text = raw_input( x )
> while test_int( text ):
> print
> print "You must type a number."
> text = raw_input( x )
> return int( text )
> print; print; print
> print "*************** My Sums Test *****************"
> print; print;
> score = 0
> while score < 10:
> if whrandom.randint( 0, 1 ):
> a = whrandom.randint( 0, 9 )
> b = whrandom.randint( 0, 9 )
> r = a + b
> c = get_int( "What is %d + %d? " % ( a, b ) )
> else:
> #subtraction
> a = whrandom.randint( 0, 18 )
> b = whrandom.randint( max( a - 9, 0 ), min( a, 9 ) )
> r = a - b
> c = get_int( "What is %d - %d? " % ( a, b ) )
> if c == r:
> score = score + 1
> print "Correct: your score is %d" % score
> else:
> score = 0
> print "The correct answer was %d. You must start again." % r
> print
> print; print "Well done! You got ten correct answers in a row."
> print; print
>
> _______________________________________________
> kde-edu mailing list
> kde-edu@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-edu
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com