Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a JAVA code a flow chart is needed for the code Thank you ```java package eopproject; import java.util.Scanner; public class EOPProject1 { public

This is a JAVA code a flow chart is needed for the code Thank you

```java package eopproject; import java.util.Scanner;

public class EOPProject1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); UserSkills user = new UserSkills();

System.out.println("Enter your skills (separated by commas):"); String skillsInput = input.nextLine(); String[] skills = skillsInput.split(","); user.setSkills(skills);

System.out.println("Enter your expected salary:"); int salary = input.nextInt(); user.setExpectedSalary(salary);

System.out.println("Enter your language proficiency (1-5):"); int languageProficiency = input.nextInt(); user.setLanguageProficiency(languageProficiency);

System.out.println("Enter your communication skills (1-5):"); int communicationSkills = input.nextInt(); user.setCommunicationSkills(communicationSkills);

System.out.println("Enter your technical skills (1-5):"); int technicalSkills = input.nextInt(); user.setTechnicalSkills(technicalSkills);

CareerPath career = new CareerPath(); String suggestedCareer = career.suggestCareer(user); System.out.println("Based on your skills, a suitable career path for you could be: " + suggestedCareer); } }

class UserSkills { String[] skillsArray; int expectedSalary; int languageProficiency; int communicationSkills; int technicalSkills;

public void setSkills(String[] skills) { skillsArray = skills; }

public void setExpectedSalary(int salary) { this.expectedSalary = salary; }

public void setLanguageProficiency(int languageProficiency) { if (languageProficiency >= 1 && languageProficiency <= 5) { this.languageProficiency = languageProficiency; } else { System.out.println("Invalid input. Language proficiency must be a value between 1 and 5."); } }

public void setCommunicationSkills(int communicationSkills) { if (communicationSkills >= 1 && communicationSkills <= 5) { this.communicationSkills = communicationSkills; } else { System.out.println("Invalid input. Communication skills must be a value between 1 and 5."); } }

public void setTechnicalSkills(int technicalSkills) { if (technicalSkills >= 1 && technicalSkills <= 5) { this.technicalSkills = technicalSkills; } else { System.out.println("Invalid input. Technical skills must be a value between 1 and 5."); } }

public String[] getSkills() { return skillsArray; } } class CareerPath { public String suggestCareer(UserSkills user) { String[] skills = user.getSkills(); int languageProficiency = user.languageProficiency; int communicationSkills = user.communicationSkills; int technicalSkills = user.technicalSkills; int expectedSalary = user.expectedSalary; String suggestedCareer = ""; for(String skill : skills) { if (skill.toLowerCase().contains("programming")) { suggestedCareer += "Software Developer, Web Developer "; break; } else if (skill.toLowerCase().contains("marketing")) { suggestedCareer += "Marketing "; break; } else if (skill.toLowerCase().contains("translation")) { suggestedCareer += "Translator "; break; } } if (languageProficiency >= 4) { suggestedCareer += "Translator "; } if (communicationSkills >= 4) { suggestedCareer += "Marketing "; } if (technicalSkills >= 4) { suggestedCareer += "Software Developer, Web Devoloper "; } if (expectedSalary >= 10000) { suggestedCareer += "Management "; } if (suggestedCareer.isEmpty()) { suggestedCareer = "Sorry, we were unable to suggest a career path based on your skills and preferences."; } else { suggestedCareer = suggestedCareer.substring(0, suggestedCareer.length()-2); } return suggestedCareer; } } ```

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_2

Step: 3

blur-text-image_3

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions