Answer:
The answer to this question is given below in the explanation section
Explanation:
The formula for productivity socre is
productivity score = ((transaction dollar value/no of transaction)/no of shift)
Productivity Score Bonus is:
<=30 $50
31–69 $75
70–199 $100
>= 200 $200
........................................................................................................................................
the code is given below
........................................................................................................................................
#include <iostream>
using namespace std;
int main()
{
string firstName;
string lastName;
int noOfShift;
int noOfTransaction;
int transactionDollarValue;
int productivityScore;
int bonus;
cout<<"Employee’s first name: ";
cin>>firstName;
cout<<"Employee's last name: ";
cin>>lastName;
cout<<"Number of shifts:";
cin>>noOfShift;
cout<<" Number of transactions: ";
cin>>noOfTransaction;
cout<<"Transaction dollar value:";
cin>>transactionDollarValue;
productivityScore = (transactionDollarValue/noOfTransaction)/noOfShift;
if (productivityScore <= 30)
{
bonus =50;
cout<<"Employee’s first name: "<<firstName<<" "<<lastName;
cout<<endl;
cout<<"Employee Bonuse: $"<<bonus;
cout<<endl;
}
else if (productivityScore >= 79 && productivityScore <=199)
{
bonus =100;
cout<<"Employee’s first name: "<<firstName<<" "<<lastName;
cout<<"Employee Bonuse: $"<<bonus;
}
else if (productivityScore >= 200)
{
bonus =200;
cout<<"Employee’s first name: "<<firstName<<" "<<lastName;
cout<<"Employee Bonuse: $"<<bonus;
}
return 0;
}