Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In C++ code: 2A) Compute gross pay for each employee by interactively entering h

ID: 662313 • Letter: I

Question

In C++ code:

2A) Compute gross pay for each employee by interactively entering hours worked and hourly rate.

The following is the sample input and output for Phase 2A:

ENTER EMPLOYEE ID: 5678
ENTER HOURS WORKED: 40
ENTER HOURLY RATE: 15.00

YOUR ID IS: 5678
YOUR HOURS WORKED IS: 40
YOUR HOURLY RATE IS: $15.00
YOUR GROSS PAY IS: $600.00

2B) Compute net pay for each employee by applying a fixed tax rate of 10%. You must enter each employee's id. (Enter only last four digits of SSN at this time.)

Sample input and output for Phase 2B:

ENTER EMPLOYEE ID: 5678
ENTER HOURS WORKED: 40
ENTER HOURLY RATE: 15.00

YOUR ID IS: 5678
YOUR HOURS WORKED IS: 40
YOUR HOURLY RATE IS: $15.00
YOUR GROSS PAY IS: $600.00
YOUR TAX RATE IS: 0.10
YOUR TAX AMOUNT IS: $60.00
YOUR NET PAY IS: $540.00

Explanation / Answer

2A) #include <iostream>
using namespace std;
main() {
int employeeid;
int hoursworked;
float  hourlyrate, grosspay, taxamount, netpay;
float const TAXRATE = 0.20;
cout <<