View Single Post
Old Mar 19th, 2008, 2:42 PM   #4
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 403
Rep Power: 3 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Re: Need Help Creating A Math Tutor Program

If you don't need any inputs, labels would indeed suffice. Algorithmically, you could do the following:
var random1 = random number from 0 to 100
var random2 = random number from 0 to 100
var operation = random number from 0 to 2
switch(operation) {
	case 0:
	set operation label to '+'
	display random1 + random2
	break;
	case 1:
	set operation label to '-'
	display random1 - random2
	break;
	case 2:
	set operation label to '*'
	display random1 * random2
	break;
}
I don't exactly remember VB all too well so just look up random number in the VB help files.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis

Last edited by grimpirate; Mar 19th, 2008 at 2:55 PM.
grimpirate is offline   Reply With Quote