Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Someone help me with this assignment, thank you so much. For this Assignment, you will write one (1) program. Create the class JobApp that holds

Someone help me with this assignment, thank you so much.

For this Assignment, you will write one (1) program.

Create the class JobApp 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

Graphics

Include an overloaded constructor that accepts a value for each of four skill fields. Also include a get method for each field. Save the class as JobApp.java.

Write a class TestJobApps.

First, create a Boolean value returning method named Accept(JobApp newJobApp) that accepts a JobApp object, with the field values set to true or false Boolean values according to a users input provided. Retrieving the values of each field from the JobApp object provided as a parameter (see above), the method should analyze the objects fields values and determine whether an applicant is qualified for an interview. A qualified applicant must have all four skills. If that is the case, the method will return Boolean true value. However, if even one skill is missing, the method will return false value. You will use the if if else decision structures with relational operators and logical AND OR operators when processing the JobApp object data received by the Accept method.

In the main method, instantiate three JobApp objects using the JobApp overloaded constructor and passing the users input data to each objects fields, one after another, as users provide the corresponding answers declaring their qualification skills. Use the Scanner or JOptionPane class as the input tool. When all three JobApp objects with the users input provided are instantiated, call the Accept method for each of the three objects to determine which application meets the acceptance criteria and ensures an interview. Display each applicants name, phone number, and the Accept method result for each applicant approving or rejecting an interview for that application. Use the Scanner or JOptionPane class tool as an output tool.

Save the file as TestJobApps.java.

Before you start coding the TestJobApps class, develop a pseudocode of the logic showing the decision constructs and decisions sequence flow that will be implemented to determine positive or negative acceptance of the JobApp object received by the Accept method as an input parameter.

A possible template for the TestJobApps class might look like this:

import java.util.Scanner; public class TestJobApps { public static boolean Accept(JobApp newJobApp) { boolean acceptance = false; /* Here, create a decision tree of if  else if constructs, which takes four fields of the passed newJobApp object (as, e.g., newJobApp.getGraphics() ) and determines if all four fields have true values In this case  assign the acceptance variable to true */ return acceptance; } public static void main(String[] args) { /* declare variables you might need, e.g., to keep a users input etc. */ /* Using Scanner or JOptionPane accept users input for each of four skills for the first user, instantiate the firstJobApp object making use of that input Call Accept method passing firstJobApp object and determine if this app meets acceptance criteria Display the result of analysis printing the users name, phone number and the acceptance result. If the result is negative  explain why the rejection occurred. */ /* Using Scanner or JOptionPane accept users input for each of four skills for the second user, instantiate the secondJobApp object making use of that input Call Accept method passing second JobApp object and determine if this app meets acceptance criteria Display the result of analysis printing the users name, phone number and the acceptance result. If the result is negative  explain why the rejection occurred. */ /* Using Scanner or JOptionPane accept users input for each of four skills for the third user, instantiate the thirdJobApp object making use of that input Call Accept method passing third JobApp object and determine if this app meets acceptance criteria Display the result of analysis printing the users name, phone number and the acceptance result. If the result is negative  explain why the rejection occurred. */ } }

You may use the class above as a starting point or develop your own structure of the TestJobApps class. In any case, be sure to keep a two-class architecture.

Zip JobApp. Java, TestJobApps.java, and an MS Word .doc with the screenshots of the running application, detailed explanation of your solution, and the pseudocode of the accept( ) method into a single .zip archive named WK4Assgn+last name+first initial.zip.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions