Answer & Explanation:The part that i need to add the exception are in bold.import java.util.ArrayList;import java.util.Scanner;import java.io.*;public class Main { static ArrayList name = new ArrayList(); static ArrayList id = new ArrayList(); static ArrayList state_of_employee = new ArrayList(); static ArrayList hourly_worked = new ArrayList(); static ArrayList state_of_student_employee = new ArrayList(); static ArrayList pay_rate = new ArrayList(); static Scanner in = new Scanner(System.in); private static Scanner inp; static StudentEmployee[] Obb = new StudentEmployee[50]; public static void main(String[] args) { inp = new Scanner(System.in); file_Operation(); char choice; do{ System.out.print(“===================Menu=================”); System.out.print(“nEnter:n”+” S to Show.n”+” A to Add.n”+” R to Remove.n” + ” N to Sorted-by-name.n”+ ” T to Sorted-by-rate.n”+” W to Student-isWorkStudyn” + ” H to Show-highest.n”+” L to Show-lowest.n”+” C to Change-rate id/name xxxn” + ” B to Rate x between y (bonus).n”+” E to Exit.n” + “Enter your choice : “); choice = inp.next().charAt(0); switch(choice){ case ‘S’ : Show(); break; case ‘A’ : Add(); break; case ‘R’ : Remove(); break; case ‘W’ : StudentIsWorkStudy();break; case ‘N’ : SortByName(); break; case ‘T’ : SortByRate(); break; case ‘H’ : ShowHighest(); break; case ‘L’ : ShowLowest(); break; case ‘C’ : ChangeRate(); break; case ‘B’ : Rate(); break; case ‘E’ : break; default : System.out.println(“Error, Enter a valid key with capital letter”); break; } }while(choice != ‘E’); System.out.println(“================================================”); System.out.print(“Thank you”); } public static void file_Operation() { String[] words = null; FileReader fr = null; BufferedReader br = null; String line = null ; try{ fr = new FileReader(“semployees.csv”); br = new BufferedReader(fr); line = (String)br.readLine(); while(line!=null){ words = line.split(“,”); name.add(words[0]); id.add(words[1]); state_of_employee.add(words[2]); hourly_worked.add(words[3]); state_of_student_employee.add(words[4]); pay_rate.add(words[5]); line = (String)br.readLine(); } br.close(); fr.close(); }catch(Exception ex){ System.out.println(ex); } } public static void Show() { System.out.println(“================================================”); for ( int i = 0 ; i < name.size(); ++ i ) { System.out.println( "name: "+ name.get(i) + "nid: "+id.get(i) +"nstate of employee: "+ state_of_employee.get(i) + "nHourly Worked: "+hourly_worked.get(i) +"nstate of student employee: "+ state_of_student_employee.get(i) + "nPay Rate: "+pay_rate.get(i) ); System.out.println("================================================"); } } public static void Add() { int n; System.out.print("Enter the number of person you want add : "); n = inp.nextInt(); for(int i=0 ; i= x && Integer.parseInt(hourly_worked.get(i)) <= y){ System.out.println("name: "+ name.get(i)); } } System.out.println("================================================"); } public static void ShowHighest(){ int max = Integer.parseInt(hourly_worked.get(0)); int IndexHigh=0; for ( int i = 0 ; i < name.size(); ++ i ){ if(Integer.parseInt(hourly_worked.get(i)) > max){ max = Integer.parseInt(hourly_worked.get(i)); IndexHigh = i; } } System.out.println(“================================================”); System.out.println(“The student employee with highest hourly rate is: “+ name.get(IndexHigh)); } public static void ShowLowest (){ int min = Integer.parseInt(hourly_worked.get(0)); int IndexLow=0; for( int i = 0 ; i < name.size(); ++ i ){ if(Integer.parseInt(hourly_worked.get(i)) < min){ min = Integer.parseInt(hourly_worked.get(i)); IndexLow = i; } } System.out.println("================================================"); System.out.println("The student employee with lowest hourly rate is: "+ name.get(IndexLow)); } public static void StudentIsWorkStudy(){ System.out.println("All the students that are eligible for work study status"); for ( int i = 0 ; i < name.size(); ++ i ){ if(Boolean.parseBoolean(state_of_student_employee.get(i))){ System.out.println("Name : "+name.get(i)); } } } public static void ChangeRate(){ int idd=0; System.out.println("================================================"); System.out.print("Enter the id of the Employee that's you want to change here rate: "); in = new Scanner(System.in); idd = in.nextInt(); int i=0; while(idd != Integer.parseInt(id.get(i))){ i++; } double newPayrate; System.out.print("Enter the new rate : "); in = new Scanner(System.in); newPayrate = in.nextDouble(); pay_rate.set(i, Double.toString(newPayrate)); System.out.println("Changed"); } public static void SortByName(){ String temp; String names[] = new String[name.size()]; for(int i = 0; i < name.size(); i++){ names[i] = name.get(i); } for (int i = 0; i < name.size(); i++) { for (int j = i + 1; j < name.size(); j++) { if (names[i].compareTo(names[j])>0) { temp = names[i]; names[i] = names[j]; names[j] = temp; } } } System.out.println(“================================================”); for ( int i = 0 ; i < name.size(); ++ i ){ System.out.println("name: "+ names[i]);} System.out.println("================================================"); } public static void SortByRate(){ Double temp; Double rate[] = new Double[name.size()]; for(int i = 0; i < name.size(); i++){ rate[i] = Double.parseDouble(pay_rate.get(i)); } for (int i = 0; i < name.size(); i++) { for (int j = i + 1; j < name.size(); j++) { if (rate[i].compareTo(rate[j])>0) { temp = rate[i]; rate[i] = rate[j]; rate[j] = temp; } } } System.out.println(“================================================”); for ( int i = 0 ; i < name.size(); ++ i ){ System.out.println("Rate : "+ rate[i]);} System.out.println("================================================"); } }
How it works
Paste your instructions in the instructions box. You can also attach an instructions file
Select the writer category, deadline, education level and review the instructions
Make a payment for the order to be assignment to a writer
Download the paper after the writer uploads it
Will the writer plagiarize my essay?
You will get a plagiarism-free paper and you can get an originality report upon request.
Is this service safe?
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Any citation style (APA, MLA, Chicago/Turabian, Harvard)
Our guarantees
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
Money-back guarantee
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.