Results 1 to 4 of 4

Thread: college maths program help...

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    2

    college maths program help...

    i have to create and design a small maths program which enables the user to select...

    A problem type (addition, subtraction multiplication)
    A level (Easy Medium Hard)

    Then give the user a series of questions (1 - 10)

    And finally display the score the user got

    Not quite sure where to start never really used VB before any help would be much appreciated

  2. #2
    Lively Member int3gral's Avatar
    Join Date
    Jan 2007
    Posts
    88

    Re: college maths program help...

    you said college math? give me an example of an equation question/

    are you talking about 2+3
    or integrals and deravitives?
    H22 Turbo guy from Accordtuner.com
    im an unknown quantity <10


    Quote Originally Posted by wossname
    You should get one of the new rudePods. You can cram about 500 hours of insults, put-downs and slanders on it.

  3. #3
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: college maths program help...

    Welcome to the Forums


    What language are you using? VB6? VB.Net? VBA?

    At a very basic level, you would want a group of option buttons that chosses the difficulty, a group of option buttons that chooses the type of question, then a loop through 10 inputboxes each of which displays a randomly selected question from a list, and some kind of variable to keep track of the correct answers. Yes?

    So, see if you can follow the below:

    Put 6 option buttons on the form. Use the Text or Caption property to change the names - you'll want Easy, Medium, Hard, Addition, Subtraction, Multiplication. Use the Group property of them to put the difficulty options in a group called Diff, and the other 3 in a group called eqType.

    In the command button, put something like:

    VB Code:
    1. correctcounter = 0
    2.  
    3.  For i = 1 to 10
    4.  
    5.   x = inputbox("Here is a question")
    6.  
    7.  if cint(x) > 5 then
    8.   msgbox "Correct"
    9.   correctcounter = correctcounter + 1
    10.  else
    11.   msgbox "Wrong"
    12.  end if
    13.  
    14.  Next i
    15.  
    16.  msgbox "You got " & correctcounter & " right"


    That gives you the very basics of setting up a loop, asking a specific question and telling the difference between a right answer and a wrong answer, and also tracking how many correct answers you have. You can expand it from there.

    Have a stab and then people will be able to help with bits where you have gone wrong.

    Also, since this isn't really a maths problem, ask a mod such as MartinLiss to move it to the appropriate forum where you will get a lot more replies.


    zaza
    I use VB 6, VB.Net 2003 and Office 2010



    Code:
    Excel Graphing | Excel Timer | Excel Tips and Tricks | Add controls in Office | Data tables in Excel | Gaussian random number distribution (VB6/VBA,VB.Net) | Coordinates, Vectors and 3D volumes

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    2

    Re: college maths program help...

    zaza thanks alot, really helped sir.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width