### Help with assignment

So i have this assignment:

A company pays its employees according to the following:
1. Managers: receive a fixed weekly salary
2. Hourly Workers: receive a fixed hourly wage for up to the first 40 hours they work, and
"time-and-a-half" (1.5 times) their hourly wage for overtime hours worked
3. Commission Workers: receive \$250 plus 5.7 percent of their gross weekly sales
4. Pieceworkers: receive a fixed amount of money per item for each of the items they
produce; each pieceworker in this company works on only one type of item.
Write a program to compute the weekly pay for each employee.
P.S: You do not know the number of employees in advance.
Each type of employee has its own pay code:
 Managers have code 1
 Hourly Workers have code 2
 Commission Workers have code 3
 Pieceworkers have code 4
Use a switch structure to compute each employee's pay according to that employee's pay code.
Within the switch, prompt the user (i.e., the payroll clerk) to enter the appropriate facts your
program needs to calculate each employee's pay according to that employee's pay code.
Display the total number of employees, and the total money paid to the employees.

I have come this far:

#include <iostream>
using namespace std;

int main()
{
int code, Mgr, mgrcount = 0, HW;
do {cout << "enter code, press: 1 to enter the manager's code.\n"
<< " 2 to enter the hourly worker's code.\n"
<< " 3 to enter the commission worker's code.\n"
<< " 4 to enter the pieceworker's code.\n";
cin >>code;}
while ()
{ switch (code) {
case 1:

cout << "Enter the weekly salary:\n";

cin >> Mgr;

mgrcount++;

break;

case 2:

cout << "Enter the fixed hourly wage for the first 40 hours:\n";
cin >> HW;

How can I use a formula for the "Hourly Workers" ?
Plus do you have any tips or is there something wrong in what I've done ?
can i put "num" as a variable for the three cases instead of having a variable for each case, like mgr and HW ?
what do they mean by: receive \$250 plus 5.7 percent of their gross weekly sales

Ty.
Last edited on
Work on one step at a time.