JAVA PROGRAM Help! Please read the direction on each page and write the program which can match the sample output in Java. Thank you
3. PROGRAMMING ASSIGNMENT 3 Read el: ch 6,14, pg 770 Ex 19.5, App F, (skip 6.6, 6.11-6.14) Liang: Ch 4, 7, 8.AppH Friday, July 14, 2017 6am Programming: Name your progran P3-java DUE: You will write an comparison methods, NOTE: NO because data ia type "Strings" rite an application progran to sort arrays of doubles and Strings using error checking of input data is required with corresponding error messages In production progranming, ALL software is error shown below ethods, elass sting. and finding the averages. Write the nethoda as checked -Read input size of arrays and progr repeat - Input type of sort senu ) readInput ) - Input iement values of scores and nanes void selectionAacendsoore)-Ascend selection sort 2 arrays (double and String) void bubbleDescendsooreDescend bubble sort 2 doubles and 2 Strings void bubbleAsoendS tring() Ascend bubble sort 2 doubles and 2 Strings void bubbleDeacendstring -Descend bubble sort 2 doubles and 2 Strings void aboveAverage void belowAverage void awap ) - Display nanes/scores above average - Display names/scores below average - Swap 2 arrays of doubles and Strings Display sorted arra publie elass P3 Atray of scores of students Atray of nanes of students private static double 1 scores private statie string I1 namesa private static Scanner scan new Scanner (Syst.em.in) Read input from keyboard tic scanner scan a new scanner (3ystem. in) args public ata tic void nain (String I Number of students // Which type of sort int numStudentS int typeofsore do /I Ascend/Descend? typeorsort -menu 4if typeotsort equals -1, then continue // Exit on-1 System.out.priat ("Enter the number of students: ) numStudeats scan.nextInt names new Stringl numStudents 1i scores- new doublel numStudents 1i readInput ) switch( typeofSort) // Read scores and name3 break; break: breaki case 5: aboveAverage () case 1: selectionAscendScores case 2: bubbleDescendScores case 3: bubbleAscendString ) case 4: bubbleDescendstring ) // Ascend sort scores // Descend sort scores // Ascend sort nanes I/ Descend sort names break: case 6: belowverage) // Display scores above average // Display scores below average break: /I descend order, ascend order names // Print scores and names // Repeat until -1 typeofsort /I close this scanner Pzt () while(n) ; scan.close) System.exit (o: class P3 continued on next page