Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello there, please help me in Java. Please explain if possible with comments. Thank you very much. You are given two .txt files. Employee.txt and

Hello there, please help me in Java. Please explain if possible with comments. Thank you very much.

You are given two .txt files. Employee.txt and Departments.txt.

Suppose you have already created the constructor and the files are read and all arrays are created. I need to create only methods.

1. Add a method named employeeNumber that accepts an integer index and returns the number of employees in that department.

2. Add a method named employeeRetrieval that accepts a String employee id and returns the first department index with that String employee id.

3. Add a method named employeesTotal that returns the number of all employees in all departments

4. Add a method named employeeAtDepartment that accepts an integer department index and an integer employee index and returns the employee at the specified department and employee index.

5. Add a method named departmentNumber that accepts a String department name and returns the number of employees in that department

6. Add a method named departmentTotal that accept an integer index and returns the department name.

Please only use Arrays, no bufferedReader, no ArrayList. Thank you very much

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

Step: 3

blur-text-image

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions