Question
In Java with comments. Complete Lab11 and 11a. THEN. use the main method I provided to test your classes. H9.zip To sort: Sort students, undergrads
In Java with comments.
Complete Lab11 and 11a.
THEN. use the main method I provided to test your classes. H9.zip
To sort: Sort students, undergrads and grads according to ID. Sort Faculty according to Department and Staff according to Salary.
undergrad.in
graduate.in
staff.in
faculty.in
NOTE: In order to get the 4 points for correctly coding the writeOutput methods, copy these methods within H9.zip (all four) into a word document. Clearly label which is which.
In order to get the 8 points for correctly coding the compareTo methods, copy these methods (all four) into the word document. Clearly label which is which, and upload it here as well as your project. Do not zip it. (zip the project, but upload the word document separately. Just the writeOutput and compareTo methods, please. Thx
H9.zip is below
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
package H9;
import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner;
public class H9 {
public static void main(String[] args) { /******************************* * UNDERGRADUATES * ***************************/ File inFile = new File("undergrad.in"); Scanner fileInput = null; try { fileInput = new Scanner(inFile); } catch (FileNotFoundException ex) { //Logger.getLogger(Lab10.class.getName()).log(Level.SEVERE, null, ex); } //create an arrayList ArrayList
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started