Multidimensional Arrays
It is important to understand how to use two-dimensional arrays. This week the two dimensional array is utilized with custom methods.
Assignment
Greenway Consulting surveyed the employees of three companies Alhermit, Logway, and Felter Corporations to evaluate the salaries for the employees.
Write a program that does the following:
- Put the data below into a multi-dimensional array
- Prompts the user for the company they would like employee salary statistics.
- Write a method that returns the average employee salary as a double.Pass the company number and employee Wages to this method.
- Write a method that returns the total employee salary as an int. Pass the company number and employee Wages to this method.
- Write a method that returns the number of employees as an int. Pass the company number and employee Wages to this method.
- In the main method call the other methods and out put the results