Results 1 to 2 of 2

Thread: Number Lines

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fox, OK
    Posts
    381

    Number Lines

    I'm writing a program for my algebra students to practice integers.
    Stuff like....
    3-6
    -4 + (-5)
    3(-4)
    -15 ÷ 3
    etc.

    I want to show an explanation and for the addition and subtraction, I want to show it on a number line. For example, if the problem is 3 - 7, the number line should show and arrow to that goes right to 3, and then left 7 units (starting from 3). Then the student can see that the answer is -4.

    I could probably do this with some string manipulation, but what would be the easiest way to do it in a picture format? Maybe a bitmap.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: Number Lines

    use the drawstring method of the graphics object.

    here's an example of writing text on a picturebox:

    http://www.planet-source-code.com/vb...7514&lngWId=10
    Last edited by .paul.; Mar 8th, 2010 at 05:14 PM.

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