Advice on creating a mathsheet generator

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Iakona
Forum Newbie
Posts: 2
Joined: Wed Dec 09, 2009 5:26 am

Advice on creating a mathsheet generator

Post by Iakona »

I have been asked by a friend to create a math sheet generator for their child, however i don't have a clue where to start with PHP.

Similar to this..
http://cemc2.math.uwaterloo.ca/mathf...sheetgen.shtml

It doesn't need to be advanced as that as all i'm looking for is how to create the sums.

If someone could help either by informing me where to start or even an online tutorial i would be extremely greatful!

Many thanks!
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Advice on creating a mathsheet generator

Post by pickle »

Link's broken.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Iakona
Forum Newbie
Posts: 2
Joined: Wed Dec 09, 2009 5:26 am

Re: Advice on creating a mathsheet generator

Post by Iakona »

http://www.lizardpoint.com/math/add-ws.html

Something like that, not as advanced however. I'm basically looking for something that lets you select between addition, subtraction, multiply and divide from a drop down menu. From there it would take you to a new page where a worksheet has been randomely generated if that makes sense.

I spoke to someone else and they said Javascript may be easier for this, would that be the case?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Advice on creating a mathsheet generator

Post by pickle »

I'd think PHP would be easiest. Just create a loop that picks 2 random numbers & displays them however you want. You can toggle the display of the answers with Javascript, but generating the page should probably be done in PHP.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply