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
Re: math quiz/training program for grade 1
If you install racket on a Pi withhrvoje064 wrote: ↑Fri Sep 16, 2022 5:03 amThis 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
# apt install racket
does the source version just work?
Re: math quiz/training program for grade 1
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
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
Re: math quiz/training program for grade 1
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)
Re: math quiz/training program for grade 1
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.
Anyway, this also gives you the latest version, which is 8.6.
Re: math quiz/training program for grade 1
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
# 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
Re: math quiz/training program for grade 1
Thanks for the follow up. Is the crash from bugs in the old version of racket? I wonder if there is a work around.
Re: math quiz/training program for grade 1
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.
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.
Re: math quiz/training program for grade 1
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.
Re: math quiz/training program for grade 1
ejolson wrote: ↑Fri Sep 16, 2022 5:18 amIf you install racket on a Pi withhrvoje064 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
# 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)
The code also woks on rPi4 , Debian GNU/Linux 11 (bullseye) aarch64-------------------------------------------
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.
-------------------------------------------
Re: math quiz/training program for grade 1
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
), so this is just to update the math-quiz to her current level.
Two new exercises have been added; Arabic->Roman and Roman->Arabic number conversions.
My daughter is now in grade II ( pun intended

Re: math quiz/training program for grade 1
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.
Now the program contains 5 arithmetic exercises, and 10 non arithmetic exercises.
Re: math quiz/training program for grade 1
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.
Re: math quiz/training program for grade 1
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.
The last addition is alphabetical sorting of (5) words, as per latest lessons taught in my daughter's school.
Re: math quiz/training program for grade 1
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.
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.
Re: math quiz/training program for grade 1
V 3.5.1 has been posted. It includes skip counting exercises, with increments from 2-10
Re: math quiz/training program for grade 1
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
Hrvoje
https://hrvoje064.itch.io/jasnas-math-quiz
Re: math quiz/training program for grade 1
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.hrvoje064 wrote: ↑Tue Sep 19, 2023 1:12 pmProgram 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
Now, on erroneous answer, the program also prints the correct equation.
Re: math quiz/training program for grade 1
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.hrvoje064 wrote: ↑Fri Sep 22, 2023 8:18 amI 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.hrvoje064 wrote: ↑Tue Sep 19, 2023 1:12 pmProgram 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
Now, on erroneous answer, the program also prints the correct equation.
Re: math quiz/training program for grade 1
I introduced some big changes in math-quiz recently, not exercises (the last addition there was GAPESA), but in the way it handles documentation, and especially in the way it is installed.
I finally decided to learn Racket Scribble language, for producing racket documentation. Therefore HTML docs are included in the distribution. There's a new "HTML Documentation" sub-menu under Help menu. This will start searchable docs for the program.
However, when I tested that on my rpi4b, it does not look as good as on my Linux nor my daughter's Win11 machine. I guess it is because I never installed Firefox on rpi. It still has the Chrome Browser that came with the installation 2 years ago.
The second difference, that would be interesting to those here who inquired about running program from source. math-quiz package is now installed on racket-lang.org server. So those that have Racket installed, can (in any DrRacket window) click on "File->Install Package... or Package Manager... , and in Package Source field enter math-quiz, and then click install button. After package is installed, just open the terminal, and enter: gracket -l math-quiz . That should start the program. (Your PATH mast be set for racket).
The other way is to download the zipped source package from GitHub. Look for "math-quiz-jasna" repository. Unzip it, open main.rkt file in DrRacket, and click on Run button.
I'm still updating the binary files on hrvoje064.itch.io/jasnas-math-quiz, for those that do not have Racket installed. However, I do not know how long will I be able to do that, as my rpi4 is slowly breaking down. First, this BS micro HDMI connector started misbehaving, and now whenever I want to use rpi, I have to connect-reboot-connect several times before it starts working. The latest one was today, when rpi refused to connect to internet. Actually the Chrome Browser would not connect anything claiming that the clock is not correct, and the clock will not be adjusted. I'm not planning to update to the new rpi5, because it also has the same micro HDMI connectors.
I finally decided to learn Racket Scribble language, for producing racket documentation. Therefore HTML docs are included in the distribution. There's a new "HTML Documentation" sub-menu under Help menu. This will start searchable docs for the program.
However, when I tested that on my rpi4b, it does not look as good as on my Linux nor my daughter's Win11 machine. I guess it is because I never installed Firefox on rpi. It still has the Chrome Browser that came with the installation 2 years ago.
The second difference, that would be interesting to those here who inquired about running program from source. math-quiz package is now installed on racket-lang.org server. So those that have Racket installed, can (in any DrRacket window) click on "File->Install Package... or Package Manager... , and in Package Source field enter math-quiz, and then click install button. After package is installed, just open the terminal, and enter: gracket -l math-quiz . That should start the program. (Your PATH mast be set for racket).
The other way is to download the zipped source package from GitHub. Look for "math-quiz-jasna" repository. Unzip it, open main.rkt file in DrRacket, and click on Run button.
I'm still updating the binary files on hrvoje064.itch.io/jasnas-math-quiz, for those that do not have Racket installed. However, I do not know how long will I be able to do that, as my rpi4 is slowly breaking down. First, this BS micro HDMI connector started misbehaving, and now whenever I want to use rpi, I have to connect-reboot-connect several times before it starts working. The latest one was today, when rpi refused to connect to internet. Actually the Chrome Browser would not connect anything claiming that the clock is not correct, and the clock will not be adjusted. I'm not planning to update to the new rpi5, because it also has the same micro HDMI connectors.
Re: math quiz/training program for grade 1
Some micro-HDMI adapters put strain on the socket. If you use an adapter such ashrvoje064 wrote: ↑Sun Oct 29, 2023 4:09 pmI do not know how long will I be able to do that, as my rpi4 is slowly breaking down. First, this BS micro HDMI connector started misbehaving, and now whenever I want to use rpi, I have to connect-reboot-connect several times before it starts working. The latest one was today, when rpi refused to connect to internet. Actually the Chrome Browser would not connect anything claiming that the clock is not correct, and the clock will not be adjusted. I'm not planning to update to the new rpi5, because it also has the same micro HDMI connectors.

or a cable with a micro-HDMI at one end, the socket is less likely to break.
Sorry to hear about the breakage.
Re: math quiz/training program for grade 1
Yes this adapter would definitely help, because my adapter and the power (USB-C) connector are definitely pushing each other, and USB is winning

Anyway the whole idea of buying the rpi proved to be useless to me. I bought it during covid, when my daughter started with kinder (which was then done on-line), thinking that she can do it on rpi4b. This was a disappointment right away, because rpi4 can not do Zoom. Well, it can using box86, but not good enough for any practical use. So I ended up buying for my daughter one mini Celeron PC (about twice the size of rpi) running W11, which proved to be superior to rpi4 in just about everything. From then on rpi was just sitting in the drawer, and being connected only when I would decide to update binaries for math-quiz. That's why no plans to continue with rpi5.
Re: math quiz/training program for grade 1
I can sympathise with that disappointment. I ended up buying a new desktop--a 6 core Ryzen APU with built-in graphics--just for Zoom.
In my opinion cooperating to make a native ARM client was a missed opportunity for Zoom, for Raspberry Pi and for thousands of students who didn't have an expensive PC for all the add-hoc distance learning. While that's minor compared to everything else, big problems can always be made less worse by people working together.
Re: math quiz/training program for grade 1
As my rpi4b will not connect to internet any more, I can't even install math-quiz package from Racket-package server to test it.
Anyway it has been thoroughly tested on several PC Linux distros, and on Windows 11. Therefore I'll stop posting source files on https://hrvoje064.itch.io/jasnas-math-quiz, because it makes no sense. Racket can now easily be installed on rpi using Snap store, and when you have Racket installed, installing math-quiz is easier using DrRacket, than downloading source files yourself.
Just open the terminal and enter drracket . When DrRacket window opens, click on File->Package Manager... menu. When Package Manager opens, input math-quiz in input field, and click install button.
If you want to download just the sources, you can get them from https://github.com/hrvoje064/math-quiz-jasna.
The latest addition to math-quiz is automated updating. But that only works if you installed it as a package. If installed as a standalone binary program (from itch.io) updating is disabled, because it will not work anyway.
Once installed, to update (any time you want) just click on Help->Update math-quiz menu, and when update window opens, click on update button. If the update is available, program will carry it out, or it will just tell you, no updates available.
Anyway it has been thoroughly tested on several PC Linux distros, and on Windows 11. Therefore I'll stop posting source files on https://hrvoje064.itch.io/jasnas-math-quiz, because it makes no sense. Racket can now easily be installed on rpi using Snap store, and when you have Racket installed, installing math-quiz is easier using DrRacket, than downloading source files yourself.
Just open the terminal and enter drracket . When DrRacket window opens, click on File->Package Manager... menu. When Package Manager opens, input math-quiz in input field, and click install button.
If you want to download just the sources, you can get them from https://github.com/hrvoje064/math-quiz-jasna.
The latest addition to math-quiz is automated updating. But that only works if you installed it as a package. If installed as a standalone binary program (from itch.io) updating is disabled, because it will not work anyway.
Once installed, to update (any time you want) just click on Help->Update math-quiz menu, and when update window opens, click on update button. If the update is available, program will carry it out, or it will just tell you, no updates available.