Time remaining:
Write a program that picks a number between 1

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

There is already a skeleton of the program that the professor provided for us. He has asked us to finish writing the code. The language we use is Java and the program we use to write the various programs is BlueJ.

Apr 4th, 2015

//This is the program which is picking 5 numbers between 1 and 100 randomly

public class GenNum {

  public static void main(String[] args) {

  System.out.println(" 5 Numbers picked between 1 and 100 are,");

    for(int i=0; i < 5 ; i++)

      System.out.println(" Number ["+ (i+1) + "] : " + (int)(Math.random()*100));

     }

}


Apr 4th, 2015

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Apr 4th, 2015
...
Apr 4th, 2015
Jun 26th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer