#include "CommissionWorker.h"
#include "PieceWorker.h"
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

int main()
{
  CommissionWorker a(1000, "John Doe", 250.00, 2.5);
  PieceWorker b(2000, "Jane Doe", 0.35);
  a.setSalesAmount(2750.00);
  b.setQuantity(570);
  cout << fixed << showpoint << setprecision(2);
  cout << a.getId() << " " << a.getName() << " $" << a.calculatePay() << endl;
  cout << b.getId() << " " << b.getName() << " $" << b.calculatePay() << endl;
}

