title: Employee class C++ inputting the information.
body: <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  class Employee {
  private:
      string employee_firstname;
      string employee_lastname;
      string idnumber;
      string address;
      string phonenumber;
      string tenure;
  
  public:
      Employee() {
          employee_firstname = "";
          employee_lastname = "";
          idnumber = "";
          address = "";
          phonenumber = "";
          tenure = "0";
      }
      Employee(string fn, string ln, string id, string ad, string ph, string ten) {
          employee_firstname = fn;
          employee_lastname = ln;
          idnumber = id;
          address = ad;
          phonenumber = ph;
          tenure = ten;
  
  
      }
      string getFirstName();
      string getLastName();
      string getidnumber();
      string getAddress();
      string getPhone();
      string getTenure();
  
      void setFirstname(string fn) {
          employee_firstname = fn;
      }
      void setLastname(string ln) {
          employee_lastname = ln;
      }
      void setidnumber(string id) {
          idnumber = id;
      }
      void setaddress(string ad) {
          address = ad;
      }
      void setphonenumber(string ph) {
          phonenumber = ph;
      }
      void settenure(string ten) {
          tenure = ten;
      }
  };
  string Employee::getFirstName() {
      return employee_firstname;
  }
  string Employee::getLastName() {
      return employee_lastname;
  }
  string Employee::getidnumber() {
      return idnumber;
  }
  string Employee::getAddress() {
      return address;
  }
  string Employee::getPhone()
  {
      return phonenumber;
  }
  string Employee::getTenure() {
      return tenure;
  }
  
  const int employee_num = 3;
  
  int main()
  {
      Employee num[employee_num] = {
          ("John", "Smith", 4752, "8971 herlo st", "916-628-8452", 8),
          ("Cathy", "Guringo", 5826, "538 reed ct", "310-852-6654", 5),
          ("Kyle", "Ford", 7856, "292 murrietta st", "323-547-7423", 3),
      };
  
      for (int i = 0; i &lt; employee_num; i++)
      {
          cout &lt;&lt; num[i].getFirstName() &lt;&lt; " ";
          cout &lt;&lt; num[i].getLastName() &lt;&lt; " ";
          cout &lt;&lt; num[i].getidnumber() &lt;&lt; " ";
          cout &lt;&lt; num[i].getAddress() &lt;&lt; " ";
          cout &lt;&lt; num[i].getPhone() &lt;&lt; " ";
          cout &lt;&lt; num[i].getTenure() &lt;&lt; " ";
      }
      return 0;
  }
  </code></pre>
  
  <p>I'll be completely honest. I don't understand how to retrieve and display the employee's information here. I've asked the professor and the way he explains it doesn't really make sense to me. He can't really explain it in a different way.  </p>
  
  <p>The prompt from my professor goes like this:</p>
  
  <p>Write a Employee class that contains the following fields:</p>
  
  <ul>
  <li>Last Name</li>
  <li>First Name</li>
  <li>Employee ID</li>
  <li>Address</li>
  <li>Phone Number</li>
  <li>Years Employed</li>
  </ul>
  
  <p>The class should have two constructors:
  - A default constructor that sets the fields to empty strings ("") and 0 for years employed
  - A constructor that accepts the three fields as arguments and assigns them to Last Name, First Name, and Employee ID.</p>
  
  <p>Write appropriate mutator methods to store values in the fields and accessor methods to return the values in the fields.</p>
  
  <p>In the main function, create three Employee objects by entering the fields for each object from the keyboard.</p>