Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have this code: import java.util.Scanner; public class Jobs { /** * @param arg

ID: 3640502 • Letter: I

Question

I have this code:

import java.util.Scanner;

public class Jobs {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {


int numberOfJobs = 0;
int sumOfIncome = 0;
int averageIncome = 0;

System.out.println("Enter the number of jobs you have:");
numberOfJobs = in.nextInt();

int[] income = new int[numberOfJobs];

for (int i= 0; i < income.length; i++)

{
System.out.println("Enter the income of the job #" + ( i + 1 ) + ":" );
income[i] = in.nextInt();
int IncomeOfCurrentJob = income [i];
sumOfIncome = sumOfIncome + IncomeOfCurrentJob;

}
numberOfJobs = numberOfJobs;
System.out.println("You have " + numberOfJobs+ " jobs.");

averageIncome = sumOfIncome / numberOfJobs;
System.out.println("The average pay of your jobs is $" + averageIncome + ".");


}

}



And I need it to come out with this when the program runs:

How many jobs do you have? 3

Enter income from job #1: 10000

Enter income from job #2: 30000

Enter income from job #3: 50000

You have 3 jobs.
The highest paying job pays $50000.
The lowest paying job pays $10000.
The average pay for the 3 jobs entered is $30000.



I cannot seem to figure out how to get it to display/ask about the lowest and highest paying job.
Everthing else I am fine with.

Explanation / Answer

DON'T FORGET TO RATE LIFESAVER!!

solution : http://dl.dropbox.com/u/56476562/Jobs.html