dimanche 19 avril 2015

program that generates 10 random numbers. Visual Basic


  1. Write a program that generates 10 random numbers. You can call the following function to generate the random numbers on Microsoft Visual Studio


The function should be called as num= GenerateRandomNumber(0,100) to generate a random number between 0 to 100. The program then add these numbers to an array A of size 10 (declared as global) and displays the ten input numbers on the screen. It should also displays the largest one. You have to write the commands in the following procedures (lines with below ‘ are comment lines).


Aucun commentaire:

Enregistrer un commentaire