User Profile

Collapse

Profile Sidebar

Collapse
Jrezak321
Jrezak321
Last Activity: Aug 6 '07, 05:48 PM
Joined: Jul 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Jrezak321
    replied to VB Program Help
    Here is what I have so far. I am stuck on getting a play again button to reset the game back to normal and how to get the game to compare the previous guess to the new guess and differenciate between warm or cold. I know i need to use the math.abs() function. Can anyone help.



    Public Class Form1
    Dim randomobject As Random = New Random()
    Dim nrand As Integer = randomobject.Ne xt(1, 1001)
    ...
    See more | Go to post

    Leave a comment:


  • Jrezak321
    replied to VB Program Help
    Here is what I got so far... I am lost though. First off I do not know if I declared everything correctly? Also how do I get the guess to input after it is typed in the box? And how do you configure the warm/cold colors? Please help!

    [CODE=vbnet]Public Class Form1
    Dim randomobject As Random = New Random()
    Dim nrand As Integer = randomobject.Ne xt(1, 1001)

    Dim guess As Integer

    ...
    See more | Go to post

    Leave a comment:


  • Jrezak321
    replied to VB Program Help
    The main problem I am having is setting up the number generator. I know it goes something like this.

    Dim randomobject As Random = New Random()
    Dim nrand As Integer = 0


    nrand = randomobject.ne xt(1,1000)

    but what else do I need to start?
    See more | Go to post

    Leave a comment:


  • Jrezak321
    started a topic VB Program Help

    VB Program Help

    Hi I was wondering if anyone could help me with this homework problem of mine? I need to create a program that does this:

    Write a program that plays “guess the number” as follows: Your program chooses the number to be guessed by selecting an Integer at random in the range 1–1000. The program then displays the following text in a label:

    I have a number between 1 and 1000--can you guess my number?
    Please...
    See more | Go to post
No activity results to display
Show More
Working...