title: I need help on my C++ assignment using Microsoft Visual C++
body: <p>Ok, so I don't want you to do my homework for me, but I'm a little lost with this final assignment and need all the help I can get. Learning about programming is tough enough, but doing it online is next to impossible for me... Now, to get to the program, I am going to paste what I have so far. This includes mostly //comments and what I have written so far. If you can help me figure out where all the errors are and how to complete the assignment, I will really appreciate it. Like I said, I don't want you to do my homework for me (it's my final), but any constructive criticism is welcome. This is my final assignment for this class and it is due tomorrow (Sunday before midnight, Arizona time).</p>
  
  <p><strong><em>This is the assignment:</em></strong></p>
  
  <p>Examine the following situation:</p>
  
  <ul>
  <li><p>Your company, Datamax, Inc., is in the process of automating its payroll systems. Your manager has asked you to create a program that calculates overtime pay for all employees. Your program must take into account the employee’s salary, total hours worked, and hours worked more than 40 in a week, and then provide an output that is useful and easily understood by company management. </p></li>
  <li><p>Compile your program utilizing the following background information and the code outline in Appendix D (included in the code section). </p></li>
  <li><p>Submit your project as an attachment including the code and the output.</p></li>
  </ul>
  
  <p>Company Background:</p>
  
  <ul>
  <li>Three employees: Mark, John, and Mary </li>
  <li>The end user needs to be prompted for three specific pieces of input—name, hours worked, and hourly wage. </li>
  <li>Calculate overtime if input is greater than 40 hours per week. </li>
  <li>Provide six test plans to verify the logic within the program. </li>
  <li>Plan 1 must display the proper information for employee #1 with overtime pay. </li>
  <li>Plan 2 must display the proper information for employee #1 with no overtime pay. </li>
  <li>Plans 3-6 are duplicates of plan 1 and 2 but for the other employees. </li>
  </ul>
  
  <p>Program Requirements:</p>
  
  <ul>
  <li>Define a base class to use for the entire program. </li>
  <li>The class holds the function calls and the variables related to the overtime pay calculations. </li>
  <li>Define one object per employee. Note there will be three employees. </li>
  <li>Your program must take the objects created and implement calculations based on total salaries, total hours, and the total number of overtime hours. See the Employee Summary Data section of the sample output. </li>
  </ul>
  
  <p>Logic Steps to Complete Your Program:</p>
  
  <ul>
  <li>Define your base class.</li>
  <li>Define your objects from your base class.</li>
  <li>Prompt for user input, updating your object classes for all three users.</li>
  <li>Implement your overtime pay calculations.</li>
  <li>Display overtime or regular time pay calculations. See the sample output below.</li>
  <li>Implement object calculations by summarizing your employee objects and display the summary information in the example below.</li>
  </ul>
  
  <p><strong><em>And this is the code:</em></strong></p>
  
  <pre><code>    // Final_Project.cpp : Defines the entry point for the console application.
      //
  
      #include "stdafx.h"
      #include &lt;iostream&gt;
      #include &lt;string&gt;
      #include &lt;iomanip&gt;
  
      using namespace std;
  
      //
      //CLASS DECLARATION SECTION
      //
      class CEmployee
      { 
      public:
       void ImplementCalculations(string EmployeeName, double hours, double wage);
       void DisplayEmployInformation(void);
       void Addsomethingup (CEmployee, CEmployee, CEmployee);
       string EmployeeName ;
       int hours ;
          int overtime_hours ;
       int iTotal_hours ;
       int iTotal_OvertimeHours ;
       float wage ;
       float basepay ;
       float overtime_pay ;
       float overtime_extra ;
       float iTotal_salaries ;
       float iIndividualSalary ;
      };
  
      int main()
      { system("cls"); 
  
       cout &lt;&lt; "Welcome to the Employee Pay Center";
  
      /*
      Use this section to define your objects.  You will have one object per employee.  You have only three employees.
      The format is your class name and your object name.
      */
  
  
       std::cout &lt;&lt; "Please enter Employee's Name: ";
       std::cin &gt;&gt; EmployeeName;
       std::cout &lt;&lt; "Please enter Total Hours for (EmployeeName): ";
       std::cin &gt;&gt; hours;
       std::cout &lt;&lt; "Please enter Base Pay for(EmployeeName): ";
       std::cin &gt;&gt; basepay;
      /*
      Here you will prompt for the first employee’s information.
      Prompt the employee name, hours worked, and the hourly wage.  For each piece of information, you will update the appropriate class member defined above.
      Example of Prompts
      Enter the employee name      = 
      Enter the hours worked       = 
      Enter his or her hourly wage = 
      */
  
      /*
      Here you will prompt for the second employee’s information.
      Prompt the employee name, hours worked, and the hourly wage.  For each piece of information, you will update the appropriate class member defined above.
      Enter the employee name      = 
      Enter the hours worked       = 
      Enter his or her hourly wage = 
  
      */
  
      /*
      Here you will prompt for the third employee’s information.
      Prompt the employee name, hours worked, and the hourly wage.  For each piece of information, you will update the appropriate class member defined above.
      Enter the employee name      = 
      Enter the hours worked       = 
      Enter his or her hourly wage = 
  
      */
  
      /*
      Here you will implement a function call to implement the employ calcuations for each object defined above.  You will do this for each of the three employees or objects.
      The format for this step is the following:
       [(object name.function name(objectname.name, objectname.hours, objectname.wage)] ;
      */
  
      /*
      This section you will send all three objects to a function that will add up the the following information:
      - Total Employee Salaries 
      - Total Employee Hours
      - Total Overtime Hours
  
      The format for this function is the following:
      - Define a new object.
      - Implement function call [objectname.functionname(object name 1, object name 2, object name 3)]
      /*
  
      }   //End of Main Function
  
  
      void CEmployee::ImplementCalculations (string EmployeeName, double hours, double wage){
      //Initialize overtime variables
      overtime_hours=0;
      overtime_pay=0;
      overtime_extra=0;
  
       if (hours &gt; 40) 
       {  
  
      /* 
      This section is for the basic calculations for calculating overtime pay.
      - base pay = 40 hours times the hourly wage
      - overtime hours = hours worked – 40
      - overtime pay = hourly wage * 1.5
      - overtime extra pay over 40 = overtime hours * overtime pay
      - salary = overtime money over 40 hours + your base pay
      */
  
      /*
      Implement function call to output the employee information.  Function is defined below.
      */
  
  
       } // if (hours &gt; 40)
       else
       { 
  
      /* Here you are going to calculate the hours less than 40 hours.
      - Your base pay is = your hours worked times your wage
      - Salary = your base pay
      */
  
      /*
      Implement function call to output the employee information.  Function is defined below.
      */
  
       } // End of the else
  
      } //End of Primary Function
  
      void CEmployee::DisplayEmployInformation(); 
      {
      // This function displays all the employee output information.
  
      /* 
      This is your cout statements to display the employee information:
      Employee Name ............. = 
      Base Pay .................. = 
      Hours in Overtime ......... = 
      Overtime Pay Amount........ = 
      Total Pay ................. = 
      */
  
      } // END OF Display Employee Information
  
      void CEmployee::Addsomethingup (CEmployee Employ1, CEmployee  Employ2)
      {
       // Adds two objects of class Employee passed as 
       // function arguments and saves them as the calling object's data member values. 
  
      /* 
      Add the total hours for objects 1, 2, and 3.
      Add the salaries for each object.
      Add the total overtime hours.
      */
  
      /*
      Then display the information below.  
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      %%%% EMPLOYEE SUMMARY DATA%%%%%%%%%%%%%%%%%%%%%%%
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      %%%% Total Employee Salaries ..... = 576.43
      %%%% Total Employee Hours ........ = 108
      %%%% Total Overtime Hours......... = 5
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      */
       } // End of function
  </code></pre>