Like this?

So it should be something like this?

Code: C
#include <iostream>
#include <cstring>

using namespace std;

int main()
{
      //declare variables
      char lastname[50];
      char firstname[50]
      int comission;

      //get employee name
      cout << "Enter the Employee's first and last name last name: ";
      cin >> getline (lastname, 50);
      int salary = 2500;
     
      //get sales rate
      double commissionRate = 0.0;

      if(commission <= 5000)
            commisionRate  = 0.08;
      else if(commission <= 10000 && commission > 5000)
            commissionRate = 0.10;
      else
            commissionRate = 0.12;

      cout << "firstname" << "lastname" << "commissionRate" <<

      return 0;
      system ("pause")
}

Last edited by SaswatPadhi; 2Jul2009 at 06:46.. Reason: Code-Blocks