Respuesta :
The program that is required here is a payroll program. See the explanation below.
What is a program?
A program is a series of instructions that are given to a computer in a predetermined language with precise instruction that delivers a specific output.
What is the required program?
The program that calculates the pay - (Payroll program) is given as follows:
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
int paycode;
int WeeklySalary;
double pay;
int HourlySalary;
int TotalHours;
int GrossWeeklySales;
int pieces;
int PieceWage;
cout << "Enter paycode (-1 to end): ";
cin >> paycode;
while (1); {
switch (paycode) {
case '1':
cout << "Manager selected." << endl;
cout << "Enter weekly salary: ";
cin >> WeeklySalary;
cout << endl;
pay = WeeklySalary;
cout << "The manager's pay is $ " << pay;
cout << endl;
break;
case '2':
cout << "Hourly worker selected." << endl;
cout << "Enter the hourly salary: ";
cin >> HourlySalary;
cout << endl;
cout << "Enter the total hours worked: " << endl;
cin >> TotalHours;
if ( TotalHours <= 40)
pay = HourlySalary * TotalHours;
else
pay = (40.0 * HourlySalary) + (TotalHours - 40) * (HourlySalary * 1.5);
cout << endl;
cout << "Worker's pay is $ " << pay;
cout << endl;
break;
case '3':
cout << "Commission worker selected." << endl;
cout << "Enter gross weekly sales: ";
cin >> GrossWeeklySales;
cout << endl;
pay = (GrossWeeklySales *.57) + 250;
cout << " Commission worker's pay is $ " << pay;
break;
case '4':
cout << "Pieceworker selected." << endl;
cout << "Enter number of pieces: ";
cin >> pieces;
cout << "Enter wage per piece: ";
cin >> PieceWage;
pay = pieces * PieceWage;
cout << "Pieceworker's pay is $ " << pay;
break;
}
}
system ("pause");
return 0;
}
Learn more about programs at;
https://brainly.com/question/1538272
#SPJ1