• Home
  • Blog
  • this is java and also write the explanation about your code,thank you

this is java and also write the explanation about your code,thank you

0 comments

//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:
// applicants
// current employees (those who were hired),
// past employees (those who were fired)
//
//Hint: for queue: Queue<Person>
// for stack: ArrayDeque<Person>

//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

//create a Person object using the name, degree, skill list
//and return this Person object

return null;
}

//Optional: (don't have to do this)
// You may want to separate hire and fire functionalities from main() and
// add two more 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 { //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() }

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}