subject
Computers and Technology, 09.12.2019 18:31 talia43

Write a program that calculates the average number of days a company's employees are absent. the program should have the following functions: a function called by main that asks the user for the number of employees in the company. this value should be returned as an int. (the function accepts no arguments.) a function called by main that accepts one argument: the number of employees in the company. the function 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 an int. a function called by main that takes two arguments: the number of employees in the company and 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 output and does not ask the user for input.) input validation: do not accept a number less than 1 for the number of employees. do not accept a negative number for the days any employee missed.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, QueenKy9576
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
image
Computers and Technology, 23.06.2019 02:30, hailey5campbelp7d1c0
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
image
Computers and Technology, 23.06.2019 07:30, kimhoss2
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, Riddledjam44623
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
You know the right answer?
Write a program that calculates the average number of days a company's employees are absent. the pro...

Questions in other subjects:

Konu
English, 21.05.2021 15:20
Konu
Mathematics, 21.05.2021 15:20
Konu
English, 21.05.2021 15:20