#include "Employee.h"

#include <iomanip.h>

ostream& operator<<(ostream& Out, const Employee& E)
{
  Out.setf(ios::fixed);

  Out << setw(4) << E.Number_
      << setw(3) << E.Age_
      << setw(2) << E.Dependents_
      << setw(6) << setprecision(2) << E.Wage_;

  return Out;
}

istream& operator>>(istream& In, Employee& E)
{
  In >> E.Number_ >> E.Age_ >> E.Dependents_ >> E.Wage_;

  return In;
}

Employee& Employee::operator=(const Employee& E)
{
  Number_ = E.Number_;
  Age_ = E.Age_;
  Dependents_ = E.Dependents_;
  Wage_ = E.Wage_;

  return (*this);
}

