Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Implement a method called reportEmployees () which should write the employee objects stored in the employeeList to a text file named employees-report.txt . You
Implement a method called reportEmployees () which should write the employee objects stored in theemployeeList to a text file named "employees-report.txt". You should use theprintf()method to format your data in the following structure: [7 marks] Assume you have a get method for each attribute of the class Employee.
- public void reportEmployees () ;
ID | Name | Salary | Extra Hours |
100 | Pete Mann | $1000.0 | 10.0 |
101 | Chris Kenno | $1200 | 20.5 |
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