![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2008
Posts: 1
Rep Power: 0
![]() |
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 ![]() |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 150
Rep Power: 1
![]() |
Re: Need Help Creating A Math Tutor Program
Sounds like someone has homework from school that he hasn't done.
![]()
__________________
SYNTAX ERROR ... |
|
|
|
|
|
#4 |
|
King of Portal
|
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;
}
__________________
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Science Prereqs - Math | bigguy | Coder's Corner Lounge | 22 | Mar 15th, 2006 12:19 AM |
| Trying to setup an anti-cheat system for a game friend and I are creating | Dr.Backtick` | C++ | 14 | Feb 15th, 2006 11:12 PM |
| Math puzzle | Steverino | Visual Basic | 8 | Jan 3rd, 2006 7:22 PM |
| Math Games | Sane | Coder's Corner Lounge | 8 | Dec 22nd, 2005 3:30 AM |
| Recommended math book to accompany course? | Jessehk | Coder's Corner Lounge | 7 | Nov 15th, 2005 6:05 PM |