hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

math quiz/training program for grade 1

Fri Sep 16, 2022 5:03 am

This program was written for my daughter when she started grade 1 (Philippines). Over the past 5 months program was gradually extended with new exercises (as new topics were introduced in school), and now is pretty much complete. It has been tested thoroughly by my daughter (6) for the past 3 months. She is using it 30 minutes almost every day.

Program has 12 exercises:
1) + - (three levels - can be set via setup menu)
2) 10*10 (multiplication table - for higher grades - can be set from 5*5 to 12*12)
3) *
4) 100/10 (division table - can be set from 25/5 to 144/12)
5) /
------------------------------
6) > = <
7) Before Between After
8) Odd Even
9) missing number in sequence (three levels of difficulty)
10) Position value
11) Fractions (graphics)
12) Clock (graphics)

Program is written in Racket 8.6 compiler (Scheme) on x86 PC running Linux, but it is also compiled and tested on my daughters rpi4B.
It can be downloaded from: https://hrvoje064.itch.io/jasnas-math-quiz
There are 3 standalone executable versions for raspberry pi:
raspberry pi OS 32
raspberry pi OS 64
raspberry pi Ubuntu 64

ejolson
Posts: 11350
Joined: Tue Mar 18, 2014 11:47 am

Re: math quiz/training program for grade 1

Fri Sep 16, 2022 5:18 am

hrvoje064 wrote:
Fri Sep 16, 2022 5:03 am
This program was written for my daughter when she started grade 1 (Philippines). Over the past 5 months program was gradually extended with new exercises (as new topics were introduced in school), and now is pretty much complete. It has been tested thoroughly by my daughter (6) for the past 3 months. She is using it 30 minutes almost every day.

Program has 12 exercises:
1) + - (three levels - can be set via setup menu)
2) 10*10 (multiplication table - for higher grades - can be set from 5*5 to 12*12)
3) *
4) 100/10 (division table - can be set from 25/5 to 144/12)
5) /
------------------------------
6) > = <
7) Before Between After
8) Odd Even
9) missing number in sequence (three levels of difficulty)
10) Position value
11) Fractions (graphics)
12) Clock (graphics)

Program is written in Racket 8.6 compiler (Scheme) on x86 PC running Linux, but it is also compiled and tested on my daughters rpi4B.
It can be downloaded from: https://hrvoje064.itch.io/jasnas-math-quiz
There are 3 standalone executable versions for raspberry pi:
raspberry pi OS 32
raspberry pi OS 64
raspberry pi Ubuntu 64
If you install racket on a Pi with

# apt install racket

does the source version just work?

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Fri Sep 16, 2022 6:53 am

I don't think you can install racket on a pi like that, but maybe I'm wrong. I always installed by downloading source + binary packages directly from Racket site. The compilation/installation takes 1 hour.

Anyway, once you have Racket installed and working, math-quiz source works. Load it in DrRacket IDE and just click run.

Having said that, binary tarballs also just work.

Hrvoje

pidd
Posts: 4935
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK

Re: math quiz/training program for grade 1

Fri Sep 16, 2022 1:39 pm

Racket is in the standard repository so can be installed with apt, it is version 7.9 as standard but 8.5 is in bullseye-backports. (for 64 bit, I've not checked the 32-bit repos)

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Fri Sep 16, 2022 2:21 pm

Thanks, was not aware of that. I only installed 64 bit version few days ago on Pi. Last time (few months ago, while I was working on math-quiz) when I checked Internet on how to install Racket on Pi, the only information I found, was to download sources+binary packages and compile. No biggie, was doing that with x86 Linux for the past 30 years.
Anyway, this also gives you the latest version, which is 8.6.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Sat Sep 24, 2022 12:52 pm

If you install racket on a Pi with

# apt install racket

does the source version just work?
[/quote]

I can give you a better answer now. I installed on rpi_ubuntu_64 racket with
# apt install racket, and I got v 8.2.

The source will not run properly. It starts but eventually, it will crash. As I said before, you need minimum racket 8.5

ejolson
Posts: 11350
Joined: Tue Mar 18, 2014 11:47 am

Re: math quiz/training program for grade 1

Sat Sep 24, 2022 2:07 pm

hrvoje064 wrote:
Sat Sep 24, 2022 12:52 pm
I can give you a better answer now. I installed on rpi_ubuntu_64 racket with
# apt install racket, and I got v 8.2.

The source will not run properly. It starts but eventually, it will crash. As I said before, you need minimum racket 8.5
Thanks for the follow up. Is the crash from bugs in the old version of racket? I wonder if there is a work around.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Sat Sep 24, 2022 2:46 pm

I did not spend more than 30 seconds looking at error report. It was something about not understanding "send" inside one macro.

I only remember that I opened Position Value exercise, and it failed to show the number, because one of the digits was supposed to be red, and that is where the send was coming from.

Anyway, where's the problem? Just download Unix source + built packages, and compile it.

The following works best for me:

cd into racket8.6/src directory
mkdir build
cd build
../configure --prefix=/usr/local
make
sudo make install

Of course you will need GCC and make installed.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Mon Jan 16, 2023 5:29 am

Just a brief update. Version 2.12 is posted. It is just a small addition to (+ -) exercises. There are 4 levels now, with new level 0 included just to force a student to learn fast calculation without using fingers for counting of numbers between 1 and 18. If you ask why 18? look at this example (from level 3): 338 - 229. To calculate that, 18-9 is the first operation. That's why 18 is the limit for level 0.

geev03
Posts: 396
Joined: Thu Jun 07, 2012 12:40 pm
Location: London, UK

Re: math quiz/training program for grade 1

Sun Apr 16, 2023 6:23 pm

ejolson wrote:
Fri Sep 16, 2022 5:18 am
hrvoje064 wrote:
Fri Sep 16, 2022 5:03 am
---
It can be downloaded from: https://hrvoje064.itch.io/jasnas-math-quiz
There are 3 standalone executable versions for raspberry pi:
raspberry pi OS 32
raspberry pi OS 64
raspberry pi Ubuntu 64
If you install racket on a Pi with

# apt install racket

does the source version just work?
ubu@rpi4-20230313
-----------------
OS: Debian GNU/Linux 12 (bookworm) aarch64
Host: Raspberry Pi 400 Rev 1.0
Kernel: 6.1.0-7-arm64
Uptime: 17 mins
Packages: 2370 (dpkg)
Shell: bash 5.2.15
Resolution: 1920x1080
Terminal: /dev/pts/1
CPU: (4) @ 1.800GHz
Memory: 1204MiB / 3778MiB

root@rpi4-20230313:/home/ubu/Downloads# racket --version
Welcome to Racket v8.7 [cs]
-----------------------------------------------
root@rpi4-20230313:/home/ubu/Downloads# racket math-quiz-v2-12.rkt
Font init file .jmq-fontsrc not found!
Setting default fonts.


.

Code: Select all

# racket math-quiz-v2-12.rkt

The code just woks on Debian 12 ( and can be explored using any text editor)
-------------------------------------------
S: Debian GNU/Linux 11 (bullseye) aarch64
Host: Raspberry Pi 4 Model B Rev 1.1
Kernel: 6.1.21-v8+
Uptime: 6 hours, 19 mins
Packages: 1998 (dpkg)
Shell: bash 5.1.4
Resolution: 1364x768
DE: LXDE
WM: Openbox
Theme: PiXflat [GTK3]
Icons: PiXflat [GTK3]
Terminal: lxterminal
Terminal Font: Monospace 10
CPU: BCM2835 (4) @ 1.500GHz
Memory: 997MiB / 3793MiB
-------------------------------------------
pi@raspberrypi:~/Downloads $ racket --version
Welcome to Racket v7.9 [bc].
-------------------------------------------

pi@raspberrypi:~/Downloads $ racket math-quiz-v2-12.rkt
Font init file .jmq-fontsrc not found!
Setting default fonts.
-------------------------------------------
The code also woks on rPi4 , Debian GNU/Linux 11 (bullseye) aarch64

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Fri Jul 21, 2023 1:43 pm

New version of the program has been posted on the same site as before ( https://hrvoje064.itch.io/jasnas-math-quiz ).
Two new exercises have been added; Arabic->Roman and Roman->Arabic number conversions.
My daughter is now in grade II ( pun intended :D ), so this is just to update the math-quiz to her current level.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Sat Jul 22, 2023 4:42 am

Abarairen wrote:
Wed Jul 19, 2023 2:52 pm
Its interesting! I will try to use that program too
I've just posted a new version, including some material from grade 2, Roman-> Arabic, and Arabic-> Roman exercises.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Mon Jul 31, 2023 1:29 pm

A new version (v3.1) has been uploaded. One new exercise is added; Change Return (money).
Now the program contains 5 arithmetic exercises, and 10 non arithmetic exercises.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Tue Aug 01, 2023 5:39 am

hrvoje064 wrote:
Mon Jul 31, 2023 1:29 pm
A new version (v3.1) has been uploaded. One new exercise is added; Change Return (money).
Now the program contains 5 arithmetic exercises, and 10 non arithmetic exercises.
Program has been updated to v3.1.1 . This just changes the way program reacts to errors in Change Return exercise.
Simply, it does not clear the input fields as soon as "check" button was clicked.
Instead, it first processes the answer, and then clears input fields if answer was either correct, or empty.
It does not clear anything if error was reported, giving the user a chance to correct just the fields containing the wrong inputs.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Wed Aug 16, 2023 5:04 am

Math Quiz has been updated to version v3.3
The last addition is alphabetical sorting of (5) words, as per latest lessons taught in my daughter's school.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Fri Aug 25, 2023 3:45 am

The latest version of math-quiz have been posted, v 3.3.9. The last addition is 5 levels to previously existing clock exercise.
Level 1 - just read the clock (as before), 2 - read the clock and enter +/- 1 hour, 3 - enter +/- 60,30 minutes, 4 - enter +/- 60,30,15 minutes, 5 - enter +/- random time from 10m to 3h30m.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Sat Sep 02, 2023 9:52 am

V 3.5.1 has been posted. It includes skip counting exercises, with increments from 2-10

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Tue Sep 19, 2023 1:12 pm

Program has been extended with text described exercises, or as they call it here in schools GAPESA (Given, Asked, Process, Equation, Solution, Answer). There are 16 (+) only problems, 15 (-) only problems, and 19 (+-) problems. However, note that all of these problems get different numeric values, each time they are run, so they are never the same.

Hrvoje

https://hrvoje064.itch.io/jasnas-math-quiz

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Fri Sep 22, 2023 8:18 am

hrvoje064 wrote:
Tue Sep 19, 2023 1:12 pm
Program has been extended with text described exercises, or as they call it here in schools GAPESA (Given, Asked, Process, Equation, Solution, Answer). There are 16 (+) only problems, 15 (-) only problems, and 19 (+-) problems. However, note that all of these problems get different numeric values, each time they are run, so they are never the same.

Hrvoje

https://hrvoje064.itch.io/jasnas-math-quiz
I have uploaded a new version. I realized, while my daughter was working with the GAPESA exercises, that my earlier error message was inadequate. Only reporting that the number entered is wrong, does not help the kid, because she's not sure whether her equation is wrong, or she made mistake in calculation, or both. So normally she would be stuck there.
Now, on erroneous answer, the program also prints the correct equation.

hrvoje064
Posts: 18
Joined: Fri Sep 09, 2022 4:08 am

Re: math quiz/training program for grade 1

Wed Sep 27, 2023 9:37 am

hrvoje064 wrote:
Fri Sep 22, 2023 8:18 am
hrvoje064 wrote:
Tue Sep 19, 2023 1:12 pm
Program has been extended with text described exercises, or as they call it here in schools GAPESA (Given, Asked, Process, Equation, Solution, Answer). There are 16 (+) only problems, 15 (-) only problems, and 19 (+-) problems. However, note that all of these problems get different numeric values, each time they are run, so they are never the same.

Hrvoje

https://hrvoje064.itch.io/jasnas-math-quiz
I have uploaded a new version. I realized, while my daughter was working with the GAPESA exercises, that my earlier error message was inadequate. Only reporting that the number entered is wrong, does not help the kid, because she's not sure whether her equation is wrong, or she made mistake in calculation, or both. So normally she would be stuck there.
Now, on erroneous answer, the program also prints the correct equation.
A new version v3.8 has been uploaded. This includes a full set of text given problems: +, -, +-, *, /, and combination of all. The algorithm has been changed to accommodate the complexity of problems involving multiplication and division.

Return to “Teaching and learning resources”