7. Create a class that holds data about a job applicant. Include a name, a phone
ID: 3760993 • Letter: 7
Question
7. Create a class that holds data about a job applicant. Include a name, a phone number, and four Boolean fields that represent whether the applicant is skilled in each of the following areas: word processing, spreadsheets, databases, and graphics. Include a constructor that accepts values for each of the fields. Also include a get method for each field. Create an applicaiton that instantiates several job applicant objects and pass each in turn to a Boolean method that determines whether each applicant is qualified for an interview. Then, in the main() method, display an appropriate method for each applicant. A qualified applicant has at least three of the four skils. Save the files as JobApplicant.java and TestJobApplicants.java
Explanation / Answer
package RECRUITMENT;
public class JobApplicant {
long PHONENO;
String Name;
boolean ISwordprocess;
boolean ISspreadsheet;
boolean ISdatabase;
boolean ISgraphics;
void createAPPID()
{
this.PHONENO= 792475;
this.Name = RAKESH;
this.ISwordprocess=true;
this.ISspreadsheet=false;
this.ISdatabase=true;
this.ISgraphics=true;
}
void ShowJobApplicants()
{
System.out.println("RECRUITMENT AGENCY");
System.out.println("CONTACT #: " + this.PHONENO);
System.out.println("Name: " + this.Name);
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.