I'm back looking for help on an assignment, which I have attached, so you can read the specifics(you will need to in order to understand what the Prof. wants). I do think I did pretty good(didn't have much practice, did use info here & elsewhere for assistance) in setting up my code, but it is not working.

The final outcome is to have the Average Number of Days a Companys Employees are absent.

Thanks for your AWESOMENESS!!

This program calculates the average number of days a company's employees are absent. Also, keeps track of total number of days missed. Then, returns an average number of days absent. */ #include<iostream> #include<iomanip> using namespace std; //function prototypes***************************************************** //return type: void //parameters: int - multiples (reference) //Purpose: This function asks the user for the number of employees in the company //and value is passed by-reference to the function. void GetNumEmployees (int&); //---------------------------------------------- //return type: int //parameters: int //Purpose: This function accepts one argument; the number of employees in the company and then //asks the user to enter the number of days each employee missed during the past year. While //keping track of the total number of days missed(returning an int). int TotalDaysMissed (int); //----------------------------------------------- //return type: float //parameters: 2 ints //Purpose: This function takes two arguments; the number of employees in the company and the total //number of days absent for all employees in the past year (365 days). While tracking //the average number of days absent(returning a float). float AverageDaysMissed(int, int); //----------------------------------------------- //************************************************************** int main () { //Declare and Initialize Variables int numemps = 0; int numdays = 0; double daysmissed = 0.0; double total = 0.0; float AverageDaysMissed = 0.0; //Display - how many employees in company? cout<<"How many employees are in the company?\n\n"; cout<<"\nThere are "<<numemps<<" in the company.\n\n"; //Display - how many absent days work were there? cout<<"\nHow many absent days of work were there?\n\n"; count<<"\nThere were "<<TotalDaysMissed<<" for a 12 month period.\n\n"; //Display - What is the average of absent work days per number of employees? cout<<"\nWhat is the average of absent work days per number of employees?\n\n"; count<<"\nThere were "<<AverageDaysMissed<<" for "<<numemps<<" for a 12 month period.\n\n"; return 0; } //function declarations************************************************************** void GetNumEmployees (int &numemps) { do {//prompt for the number of employees cout<<"\nPlease enter the number of employee's at the company: \n"; cin>>numemps; //Input Validation if (numemps < 1) cout<<"\nInvalid. Please enter a number higher than one: \n"; } while (numemps < 1); //FOR loop for (int i = 1; i <= numemps; i++) } //----------------------------------------------- int TotalDaysMissed (int numdays); //daysmissed by each employee (each emp must be identified somehow and then counted and show the count) //prompt must cycle for as many employees as given by user. //# of emps: //for each emp, prompt to enter # of missing days //keep track of # of missing days { do {//Prompt user for the number of days each employee missed during the past year (365 days). cout<<"\nPlease enter the number of days that each employee missed work for the last 12 months: \n"; cin>>numdays; //Input Validation if (numdays < 0) cout<<"\nInvalid. Please enter a number higher than zero.\n"; } while (numdays < 0); //FOR loop for (int i = 1; i <= numdays; i++) } //calculate-add to total //Keep track of the total number of days missed(365 days). total += TotalDaysMissed; //acculumulate running total { return TotalDaysMissed; } //----------------------------------------------- float AverageDaysMissed(int, int); //Display the average number of days the company's employees are absent (365 days). AverageDaysMissed = TotalDaysMissed / 365; { return (AverageDaysMissed, numemps); }

Error Messages:

days.cpp: In function ‘int main()’: days.cpp:58: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘const char [13]’ to binary ‘operator<<’ days.cpp:62: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘const char [13]’ to binary ‘operator<<’ days.cpp: In function ‘void GetNumEmployees(int&)’: days.cpp:83: error: expected primary-expression before ‘}’ token days.cpp:83: error: expected `;' before ‘}’ token days.cpp: At global scope: days.cpp:92: error: expected unqualified-id before ‘{’ token