Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 listOfEmployeNames) and assign some names to it

List of Job Positions (List listOfJobPositions) and assign the following values:

"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 jobPositions)

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

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 Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago