I dunno how old you all are, but I used to have a subscription to K-Power when I was a kid. They published programs in Basic for all popular home computers of the era (Apple, Commodore 64, TRS-80, IBM PC, Atari, TI 99/4A) for kids to type in and run. Might find some useful code snippets!
https://archive.org/details/k-power-magazine