Question: 3. Write a program that calculates the average number of days a company employee is absent. The program should have the following three methods: .A

 3. Write a program that calculates the average number of days

3. Write a program that calculates the average number of days a company employee is absent. The program should have the following three methods: .A method that asks the user for number of employees in the company This value should be returned as an int type value. The method accepts no arguments. A method that accepts one argument: the number of employees in the company. The method should ask the user to enter the number of days each employee missed during the past year. The total of these days should be returned as int type. (you need to use a loop to find this total) A method that accepts two arguments: The number of employees in the company and the total number of days absent for all employees during the past year. The method should return, as double type, the average number of days absent. (This method does not perform screen output and does not ask the user for input). . Use appropriate description phrases with the output

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!