Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C program that determines the salaries for three employees and finds the

ID: 3645267 • Letter: W

Question

Write a C program that determines the salaries for three employees and finds the total and average of the three salaries..

We will explain to the user very clearly what the program will be doing and how they should enter data. This program will feature the programming concept of looping

Explanation / Answer

#include using namespace std; // //CLASS DECLARATION SECTION // class EmployeeClass { public: void ImplementCalculations(string EmployeeName, int hours, double wage); void DisplayEmployInformation(void); void Addsomethingup(void); string EmployeeName; int hours , overtime_hours, iTotal_hours, iTotal_OvertimeHours; double wage, basepay; double overtime_pay, overtime_extra; double iTotal_salaries, iIndividualSalary; }; int main() { cout Employee[i].hours; cout > Employee[i].wage; } for (int i = 0; i 40)//More than 40 hours { basepay = (40 * wage); overtime_hours = hours - 40; overtime_pay = wage * 1.5; overtime_extra = overtime_hours * overtime_pay; iIndividualSalary = (overtime_extra + basepay); DisplayEmployInformation (); } else // less than 40 hours { basepay = hours * wage; iIndividualSalary = basepay; DisplayEmployInformation (); } } //End of Primary Function void EmployeeClass::DisplayEmployInformation () { //This function displays all the employee output information. cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote