//Assign 4, HiringApp
package assign4_template;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Deque;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;
public class HiringApp {
public static void main(String[] args) {
//Define the data structures for 3 different groups of people:
// new applicants
// current employees (those who were hired),
// past employees (those who were fired)
//
//Hint: for queue: Queue
// for stack: Deque
//display the menu
//get the menu choice
//process user selected service request.
//loop until the user decides to quit.
}
//other methods for code modularization
//method for getting user choice
public static int getChoice() {
//display the menu
//get user choice
//return user choice as an integer
return -1;
}
//method for accepting an applicant and reurn this applicant as a Person object
public static Person getApplication() {
//display prompt for user to enter an applicant’s name
//get user input
//display prompt for user to enter an applicant’s degree
//get user input
//display prompt for user to enter an applicant’s skill list
// (first how many skills, then enter skill one by one)
//use a loop to get each skill
//make a Person object using the name, degree, skill list
//and return this Person object
return null;
}
//You can either implement hire and fire functionalities in main(…),
// or implement them here as separate methods:
//hire method
//fire method
}
//Assign 4, Peron class.
// Represent an applicant, or an employee
package assign4_template;
import java.util.ArrayList;
public class Person { //new applicants, current employees, past employees
//Item 3. in Assign 4 Document.
//define data fields: name, degree, skill list (“Java, C#, C++”, etc.)
// skill list: must be array list or linked list
//define the constructor with given name, degree, and skill list
//define getters
//define setters
//define toString()
}