473,473 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Maths Test Program

Has anyone got any ideas how I could go about producing a maths program for
Primary School pupils? The coding isn't such a problem (ie random numbers
etc), it's acctually figuring out how to interface it or what objects to use
where etc.

I am having two or more random numbers up to say 20 displayed on the screen
and I want the child to be able to fill in the answer (txt box obviosly).
What can I use to display and use the sum in coding?

Cheers,

Jack
Jul 17 '05 #1
1 2693

"Jack Higgs" <ja*******@urmom.com> wrote in message
news:5i*******************@news-text.cableinet.net...
Has anyone got any ideas how I could go about producing a maths program for Primary School pupils? The coding isn't such a problem (ie random numbers etc), it's acctually figuring out how to interface it or what objects to use where etc.

I am having two or more random numbers up to say 20 displayed on the screen and I want the child to be able to fill in the answer (txt box obviosly). What can I use to display and use the sum in coding?

Cheers,

Jack

Just an idea here. Lots of variations are possible.
This needs a form with three labels, a text box, and a button.

Option Explicit

Private mA As Long
Private mB As Long

Private Sub Form_Load()
Randomize
End Sub

Private Sub Command1_Click()
mA = CLng(Rnd * 20 + 1)
mB = CLng(Rnd * 20 + 1)
Label1.Caption = mA
Label2.Caption = mB
Label3.Caption = ""
Text1.Text = ""
Text1.SetFocus
End Sub

Private Sub Text1_Change()
If IsNumeric(Text1.Text) Then
If CLng(Text1.Text) = mA + mB Then
Label3.Caption = "You are right!"
End If
End If
End Sub

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Scott Gunn | last post by:
Hello All, In VB.Net 2003 why is this the result to a simple maths calculation? 3.53 - 3.52 = 0.00999999046325684 Its not just this one either try this: 1.001 - 0.001 = 0.999999999999989
6
by: David Sobey | last post by:
hi everyone i'm looking to make a program that not only implements some fancy control stuff with GDI+, but does some tricky maths using polymorphic binary data trees, matrices, etc. Now I've...
27
by: Josh | last post by:
We have a program written in VB6 (over 100,000 lines of code and 230 UI screens) that we want to get out of VB and into a better language. The program is over 10 years old and has already been...
3
by: hars2010 | last post by:
hey i got this assignment in maths.i really need help guys.the question is below.The program should: It first clears the screen and then displays the next 3 lines. a1x + b1y + c1y =d1 a2x +...
1
by: jwatson | last post by:
Write a program to find the roots of quadratic equation. User will key the "a","b","c", for the equation ax*x+b*x+c = 0. formula given as x = (-b(+)(-) sqrt(b*b-4ac)/2a. Prog1: Only find the real...
1
by: TwistedSpanner | last post by:
Hello all, For the record I am a complete java novice. I have to write a program to generate/output to screen 10 simple maths question and output a final score . The question is as follows ...
13
by: Sunray | last post by:
Hi, is there anyone who can help me with a division problem i;m having I an using VB6. I am writing a program wich asks the user to give the correct answer to a given sum, it should give two number...
1
by: rich_sposato | last post by:
I released version 2.0 of C++ Unit Test Library. You can download it from SourceForget.Net at http://sourceforge.net/projects/cppunittest/ .. I wrote this unit test library because other unit...
11
by: Hazza | last post by:
Hello, I am trying to write a program to solve a simultaneous equation. It runs through all the possibilites for x, and if any of them forfil the conditions of y, then it is displayed. My problem is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.