Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are the CEO of a new tech start up company and have an opening for a position of CTO (Chief Technology Officer). Your job

image text in transcribed
image text in transcribed
image text in transcribed
You are the CEO of a new tech start up company and have an opening for a position of CTO (Chief Technology Officer). Your job is to evaluate 3 candidates who have applied. You can use the string data type to hold the names (e.g. String name1 = "Elon Musk":). Ask the user for the names of 3 people. Then ask the user to enter a credibility score between 1 - 25 for each person, this should be stored in a data type integer. Now ask the user to enter the total years of experience for each person and this should be stored in a data type int.. If the person meets any of these requirements they are potential candidates for hire and an associated boolean value should be set to true (you will need 3 boolean values for each person) ** Using a ternary operator, if any of the values of credibility Score and years entered is not within the specified range assign the value of 1 Credibility Score: (20-25] and years: 1-3 (not including 20 and 25) Credibility Score: (15-20) and years: 4-6 Credibility Score: (10-15) and years: 7-10 If the user has a credibility score of less than 10 but more than 20 years of experience they are automatically a good fit for the position You will need to determine which logical operations to use for comparison Now check which candidates are a potential nt by checking the associated boolean value. Inside you will perform a calculation using the following formula: totalScore - (credibilityScore +(1.25)"years)/100; If the person is not a potential fit set their totalScore to 0. Whichever person has the highest totalScore will be hired. Print to the console the person that is best fit for hire, if more than 1 person has the highest scores than assume person 1 has higher priority and print their name. (this can be done using a multi-way if else statements) 19 20 4e public static void main(String[] args) { Scanner input - new Scanner(System.in); String namel; String name2; String name3; double credibilityScorel; double credibilityScore2; double credibilityScore3; double yearsofexpl; double yearsofexp2; double yearsofexp3; double totalscore; 16 boolean personl- false; 117 boolean person2-false; 618 boolean person 3-false; System.out.println("Enter first person: "); namel - input.nextLine(); System.out.println("Enter credibility score: "); 22 credibility Score - input.nextDouble(); credibilityScore = credibility Score >- 1 && scedibilityScore 26) && (eacsofexp 3 > personi true; person2-true person-true; 031 ) else if (!(scedibilityscacs 20) 88 yearsofexp =10 )) { 37 personl-true: person2=true; 39 person 3 true 040 } else if (credibilityScors 20 ) System.out.println("already a good fit"); 35 38 Problems Javadoc Declaration minst Chahala Analitinn Console X Deram Fileli-120 eye (Feb 19 2020 2.05.45 PM) 1.22 credibilityScore - input.nextDouble(); credibility Score - credibility Score >- 1 && credibilityScore = 1 && yearsofexp =26) && !(yearsofexp =3) { 28 personi-true; 29 person2=true; 30 person3=true; 1.31 } else if (!(credibilityScore =20) && !(yearsofexp =6 ) { 32 personl-true; person2=true; person3=true; 35 ) 6.36 else if ((scedibility.coce 10 ) 37 personi true; 38 person2=true; 39 person3=true; 640 } else if (scedibility Score 20 ) { System.out.println("already a good fit"); { else () if (personi) if (person2) if(person) 50 51 totalScore - (credibilityScore + (1.25) "yearsofexp)/100; System.out.println("The total score of is: " + totalscore); 57

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

More Books

Students also viewed these Databases questions

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago