Assignment 1 Problem
Assignment 1 Problem
program. The Employee class stores employee information like ID , work experience as years , salary,
and monthly scores, and provides methods for bonus eligibility, salary increment, and average score
calculation.
• averageScore(): Calculates and prints the average score of the employee based on the
monthly scores.
Also provide an example of input and the expected output when using the SingleEmployeeTest” class
In the SingleEmployeeTest” class, user input is used to create 1 Employee object and perform
operations.
Example Input:
Enter ID: 1
Enter WorkExperience: 11
Example Output:
Employee id= 1
workExperience in years= 11
monthly salary= 300.0
average score=2.0
Question 2: Now modify the “SingleEmployeeTest” class in a way so that now you can create “n”
number of employess and display their information.
Hint: use a loop to take information for multiple employees. You can achieve this by using an array to
store the employee objects and a loop to iterate over them