Create a flowchart for this Java program.
public class QexamD {
/*** @param args the command line arguments*/public static void main(String[] args) {Scanner input = new Scanner(System.in);int largest = 0;int occurrence = 0;int number;
// Prompt the user to enter numberSystem.out.print("Enter number: ");do {number = input.nextInt();if (number > largest) {occurrence = 0;largest = number;}if (number == largest) {occurrence++;}
} while (number != 0);
// Display to resultsSystem.out.println("The largest number is " + largest);System.out.println("The occurrence count of the largest number is " + occurrence);}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here