- A first function asks a user for the number of employees in the company. This value should be returned as an int. The function accepts no arguments.
- A second function that does the following:
- Asks the user to enter for the following information each employee:
- A third function calculates the average number of days absent.
- The function takes two arguments:
- the employee number (ID)
- the number of days that employee missed during the past year.
- Writes each employee number (ID) and the number of days missed to the output file.
- The function returns the total of missed days as an int.Assume the employee number (ID) is 4 digits or fewer, but don’t validate it.
- The function accepts two arguments:
- The name of the file stream object as a reference parameter of type ofstream
- The number of employees in the company as int.
- the number of employees in the company
- the total number of days absent for all employees during the year.
- The function should return, as a double, the average number of days absent.
- This function does not perform screen or file output and does not ask the user for input.
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code “Newclient” for a 15% Discount!
NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

The post write a program that calculates the average number of days a company s employees are absent during the year appeared first on Custom Nursing Help.


0 comments