Question
WRITE IN JAVA ASAP: Create a class Employee with following attributes: String fullName; String jobPosition; int monthlySalary; with corresponding getters and fluent setters. In the
WRITE IN JAVA ASAP:
Create a class Employee with following attributes:
String fullName;
String jobPosition;
int monthlySalary;
with corresponding getters and fluent setters.
In the main method create:
List of Employee names (List
List of Job Positions (List
"Senior Developer", "Senior Automation Tester", "DevOps Engineer", "Finance manager", "HR assistant", "Head of department"
Using java stream functions write a program that will create Employee objects for each name in listOfEmployeNames with:
Job Position randomly picked position of the listOfJobPositions youve created;
Salary Random amount between 30 000 and 120 000 denars;
For each Employee object, print the employee details.
Check if there any Senior Automation Testers in the list and print the result;
Create a new list of all Senior Developers and print their details;
Create a new list of all employees that have a salary bigger than 1500 euros and print their details. (1 EUR = 61.5 denars);
The program should have the following methods:
Employee createEmployee(String name, String jobPosition, int salary)
void print(Employee Employee)
String selectRandomPosition(List
Sample output:
Print all Employees: Employee name: Peter Gabriel works like a HR assistant and have monthly salary of 119197 den. Employee name: Alison Ferguson works like a Senior Developer and have monthly salary of 30227 den. Employee name: Sebastian Pullman works like a HR assistant and have monthly salary of 40709 den. Employee name: Lily North works like a Finance manager and have monthly salary of 30981 den. Employee name: Paula Gill works like a DevOps Engineer and have monthly salary of 76064 den. Employee name: Gabrielle Scott works like a HR assistant and have monthly salary of 98475 den. Employee name: Tracey Nolan works like a Senior Automation Tester and have monthly salary of 45041 den. Employee name: Alan Black works like a Head of department and have monthly salary of 93356 den. Employee name: Sophie Metcalfe works like a Senior Automation Tester and have monthly salary of 56618 den. Print all developers: Employee name: Alison Ferguson works like a Senior Developer and have monthly salary of 30227 den. Are there any Senior Automation Testers in the list? true Print all employees with salary bigger than 1500 Euros: Employee name: Peter Gabriel works like a HR assistant and have monthly salary of 119197 den. Employee name: Gabrielle Scott works like a HR assistant and have monthly salary of 98475 den. Employee name: Alan Black works like a Head of department and have monthly salary of 93356 den.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started