Microsoft
Software
Hardware
Network
Question : Functions, Loops and Arrays
Guys,
I have to write 6 programs for a C++ class that include all of the things in the title. Below are the requirements for one of them. If someone could write the functioning code for this one, it would provide me with a better example than what the course information provides and I believe I could figure out the other 5. Any help would be greatly appreciated..I am assigning a high point value for this one because I haven't even gotten a good start.
Days Out Program
• 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 as in 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.
Answer : Functions, Loops and Arrays
Yes there is explicit deny for admins, also you might want to use the GUI in the RMC and re-grant them full mailbox access and send/as again
Random Solutions
How do I get my emails off an Outlook.ost file to a outlook.pst file?
Installing an SSH key onto a mac
Moving from MS SBS 2003 to a 100% hosted solution?
Can't access variable in code behind page
Outlook/Exchange Issue with Emails not showing
Should I enable or disable TCP Offload in my Hyper-V R2 environment?
Retrieve value of calculated control on a subform
restore from DB?
Linked Informix DB to SQL Server
Java Applet Client - Security Exception