Im having a struggling time trying to get with some loops and quite understand how i could possibly make this happen. I believe i am on the right track.
Calculate the average of 1000 random numbers from 0 to 999. Use variables to define these the 2 bolded numbers. Print out the result as:
“The average of <insert value> random numbers from 0 to <insert value> is: <insert value>”
private int average;
private int maxNumber;
{
average = 1000;
maxNumber = 999;
for (i=0; i<=maxNumber; i++)
{
System.out.print();
}
System.out.print("the average of //variable average// random numbers from 0 to //variable maxNumber// is ________");
System.out.println();
}
