I'm attempting a code here. I'm still a little scrappy and I'm not quite sure what I should be using here. I'm trying to create a code where the user inputs a name for an employee and a sales rate. Each employee gets payed 2,500 monthly, but Based on the sales rate they should find out their commission rate and it's dependent on this.
$0.01$5,000 8 percent
$5,000.01$10,000 10 percent
$10,000.01 and above 12 percent

I just need a little help here I think I need a case or switch statement, but I'm not even sure where to begin or place the needed codes.

My code
Code:
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
//declare variables
char lastname[50];
int comission
//get employee name
cout << "Enter the Employee's last name: ";
cin.getline (lastname, 50);
 int salary = 2500
//get sales rate
case '1'
if commission 5000 <


return 0;
}