Create a class JobApplicant that holds data about a job applicant. Include a name and four...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a class JobApplicant that holds data about a job applicant. Include a name and four boolean fields that represent whether the applicant is skilled in each of the following areas: word processing, spread sheets, data base and security. The following shows a simple UML diagram with instance variables, constructor, an eligible method, and a display info method. Add in the accessor, mutator etc methods in your program. -String name -boolean word -boolean excel -boolean dataBase -boolean security JobApplicant +JobApplicant(String name, boolean word, boolean excel, boolean dataBase, boolean security) -boolean eligible() +void displayInfo TestQ2 +static void main(String[] args) A qualified applicant has at least three of the four skills. In the eligible method you need to provide such test. The displayInfo method displays the info of an applicant (see below the sample format of printing). In the main method, you must construct at least 4 objects for 4 possible types of applicants. The following show the run time display: Name: Heng 1 Skill for word processing: true Skill for spreadsheets: true Skill for data base: true Skill fof security: false Eligible for interview: Yes Name: Heng 2 Skill for word processing: true Skill for spreadsheets: false Skill for data base: true Skill fof security: false Eligible for interview: No Name: Heng 3 Skill for word processing: true Skill for spreadsheets: true Skill for data base: false Skill fof security: true Eligible for interview: Yes Name: Heng 4 Skill for word processing: false Skill for spreadsheets: true Skill for data base: true skill fof security: true Eligible for interview: Yes Create a class JobApplicant that holds data about a job applicant. Include a name and four boolean fields that represent whether the applicant is skilled in each of the following areas: word processing, spread sheets, data base and security. The following shows a simple UML diagram with instance variables, constructor, an eligible method, and a display info method. Add in the accessor, mutator etc methods in your program. -String name -boolean word -boolean excel -boolean dataBase -boolean security JobApplicant +JobApplicant(String name, boolean word, boolean excel, boolean dataBase, boolean security) -boolean eligible() +void displayInfo TestQ2 +static void main(String[] args) A qualified applicant has at least three of the four skills. In the eligible method you need to provide such test. The displayInfo method displays the info of an applicant (see below the sample format of printing). In the main method, you must construct at least 4 objects for 4 possible types of applicants. The following show the run time display: Name: Heng 1 Skill for word processing: true Skill for spreadsheets: true Skill for data base: true Skill fof security: false Eligible for interview: Yes Name: Heng 2 Skill for word processing: true Skill for spreadsheets: false Skill for data base: true Skill fof security: false Eligible for interview: No Name: Heng 3 Skill for word processing: true Skill for spreadsheets: true Skill for data base: false Skill fof security: true Eligible for interview: Yes Name: Heng 4 Skill for word processing: false Skill for spreadsheets: true Skill for data base: true skill fof security: true Eligible for interview: Yes
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
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...
-
Does the EOQ increase or decrease if estimates of setup (order) costs include fixed, semi-variable, and pure variable costs while inventory-holding costs includes only pure variable costs? Vice...
-
Apex Mutual Fund invests primarily in technology stocks. The price of the fund at the end of each month for the 12 months of 2006 is shown in Table P-6. Table P-6 MonthMutual Fund Price January 19.39...
-
Use the information in Table 2.5 to predict the standard reaction enthalpy of2 H2 (g) + 02(g) 2 H2O (1) at 100C from its value at 25C.
-
On March 31,2010, Orbit Airways purchased a used Boeing aircraft at a cost of $45 million. Orbit Airways expects to fly the plane for five years and to have a residual value of $5 million. Compute...
-
Institutionally Related Foundations. Compass State University Foundation (CSUF) was incorporated as a not-for-profit organization to support a public university in its fund-raising efforts and the...
-
Variable manufacturing cost $ 2 7 0 Applied fixed manufacturing cost 5 0 Variable selling and administrative cost 6 2 Allocated fixed selling and administrative cost ? To achieve a target price of $...
-
Evaluate, | e* cos 4x dx
-
Competence as a certified public accountant includes all of the following except a. Having the technical qualifications to perform an engagement. b. Possessing the ability to supervise and evaluate...
-
The smaller the P-value is, the stronger the evidence against the ______________ hypothesis becomes. In Exercises 2328, fill in each blank with the appropriate word or phrase.
-
A CPA is most likely to refer to one or more of the four auditing standards of reporting in determining a. The nature of the CPA's opinion qualification. b. The scope of the CPA's auditing...
-
What is the general character of the three generally accepted auditing standards classified as general standards? a. Criteria for evaluating competence, independence, and professional care of...
-
What is the general character of the two attestation standards of field work? a. Criteria for determining by whom an engagement should be performed. b. Criteria for adequate planning, proper...
-
Compose an explanation MANAGERS attempt to maximize shareholder value from inside the organization to satisfy participants in the markets on the outside. What obstacles do the markets present that...
-
You are a Loan Officer with an Investment Bank. Today you need to set your lending parameters. They are: LTV: 55% 10 Year T-Bill: TBD Rate Markup: 300 Basis Points Term: 30 Years Amortization: 30...
-
For the rotating sprinkler of Example 4.13, what value of \(\alpha\) will produce the maximum rotational speed? What angle will provide the maximum area of coverage by the spray? Draw a velocity...
-
Air is drawn from the atmosphere into a turbomachine. At the exit, conditions are \(500 \mathrm{kPa}\) gage and \(130^{\circ} \mathrm{C}\). The exit speed is \(100 \mathrm{~m} / \mathrm{s}\) and the...
-
A turbine is supplied with \(0.6 \mathrm{~m}^{3} / \mathrm{s}\) of water from a \(0.3 \mathrm{~m}\) diameter pipe; the discharge pipe has a \(0.4 \mathrm{~m}\) diameter. Determine the pressure drop...
Study smarter with the SolutionInn App