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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
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
question
Physics, 26.06.2019 12:10
question
Chemistry, 26.06.2019 12:20
Questions on the website: 13722367