| Visual Basic?

Visual Basic?

Yahoo Manager asked:


How would I write a visual basic program that will generate 10 random numbers, store them in an array, then output the the highest and lowest values

Related posts:

  1. Can anybody send me some notes for MS visual basic programming? Jaya asked: I am a biginer of in programming in...
  2. how to make a visual basic program to record a 2 pin connection on a serial port? baseballman999 asked: I run a retail store and i would...
  3. Really Challenging Visual Basic Question Problem? ABC asked: I have a little problem. I need to...
  4. How do I write this substring code in Visual Basic? Robert Nesta M asked: I am writing a Visual Basic...
  5. Can i write BASIC or VISUAL BASIC programs on the internet? buckbucknumber2000 asked: I’d like to be able to write a...

Filed Under Programming & Design |

Tagged With , ,

Comments

2 Responses to “Visual Basic?”

  1. mapighimagsik_so on April 14th, 2009 4:00 pm

    Start by delaring your array,

    then loop 10 times, setting the value of each array item to a random number

    To find the max and min, walk the array in a loop. Declare two variables and set the values of each to the first array item.

    In the loop, find out if the current value is larger than max. If it is, then your new max value is that number. If not, find out if the current number is lower than your min. If it is, then your new min value is that number

  2. Preity on April 18th, 2009 1:20 pm

    You get some expert help from