Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 18th, 2008, 11:52 PM   #1
chapdizzle
Newbie
 
Join Date: Mar 2008
Posts: 1
Rep Power: 0 chapdizzle is on a distinguished road
Need Help Creating A Math Tutor Program

I'm very new to visualbasic and need to create a program that acts as a math tutor.

In addition to the requirements specified in the text, also create the program to randomly create either an addition, multiplication, or a subtraction problem for each question. The range of numbers should be 0 to 100.

A few questions... Since there's no real input from the user, I could just make them all the boxes labels correct? Also, I have no idea how to code it so it will pick the numbers at random from 0-100. Lastly, I have no clue as to how I'm supposed to make it pick the multiplication/addition/subtraction at random as well. Help is greatly appreciated, and sorry, my computer intelligence isn't the highest
chapdizzle is offline   Reply With Quote
Old Mar 19th, 2008, 5:07 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,428
Rep Power: 15 Ooble is on a distinguished road
Re: Need Help Creating A Math Tutor Program

We need to know what version of Visual Basic you're using before we can help you with your random numbers thing, as it's implemented differently in Visual Basic 1-6 and Visual Basic .NET/Visual Basic 2003-2008.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Mar 19th, 2008, 7:43 AM   #3
Grich
Professional Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 424
Rep Power: 8 Grich is on a distinguished road
Re: Need Help Creating A Math Tutor Program

Sounds like someone has homework from school that he hasn't done.
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote
Old Mar 19th, 2008, 3:42 PM   #4
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 447
Rep Power: 10 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 3:55 PM.
grimpirate is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Science Prereqs - Math bigguy Coder's Corner Lounge 22 Mar 15th, 2006 1:19 AM
Trying to setup an anti-cheat system for a game friend and I are creating Dr.Backtick` C++ 14 Feb 16th, 2006 12:12 AM
Math puzzle Steverino Visual Basic 8 Jan 3rd, 2006 8:22 PM
Math Games Sane Coder's Corner Lounge 8 Dec 22nd, 2005 4:30 AM
Recommended math book to accompany course? Jessehk Coder's Corner Lounge 7 Nov 15th, 2005 7:05 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC