Question: PLEASE USE THE JAVA LANGUAGE. THANKS Veronica Nathan Sally Bob Joseph In this graph, the objects are people, and the Susan Sam Dilbert Betty Name

 PLEASE USE THE JAVA LANGUAGE. THANKS Veronica Nathan Sally Bob Joseph

PLEASE USE THE JAVA LANGUAGE. THANKS

Veronica Nathan Sally Bob Joseph In this graph, the objects are people, and the Susan Sam Dilbert Betty Name Betty Bob Dilbert Joseph Nathan Sally Sam Susan Veronica Manager Sam Sally Nathan Sally Veronica Veronica Joseph Bob connections in the graph show who reports to whom in the company. An upward line on our graph says that the person lower on the graph reports to the person above them. To the right we see how this structure could be represented in a database. For each employee we record their name and the name of their manager (and from this information we could rebuild the whole hierarchy if required - do you see how?). Write a java code that read load the data above from a file called employee.txt into an Employee class. Create an another class called EmployeeManager that do the following: Write methods that looks like "countEmployeesUnder(employeeName). This method is intended to tell us how many employees report (directly or indirectly) to the person named by employeeName. For example, suppose we're calling "countEmployeesUnder'Sally') to find out how many employees report to Sally directly. You must use recursion

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!