Question: My task is to create a simple payroll program in C++. The tax rate is 10%. Employee Id: 5896, Hours Worked: 40, and Hourly Rate:

My task is to create a simple payroll program in C++. The tax rate is 10%. Employee Id: 5896, Hours Worked: 40, and Hourly Rate: 15.00

This is the program I wrote. The compile showed no errors, but when I run it, the output only says ENTER THE EMPLOYEE ID: 5896

Where is the issue in my program and how do I fix it?

My task is to create a simple payroll program in C++. The

2 NRNSEHER i #include using namespace std; 3o main() { int employeeid; int hoursworked; float hourlyrate, grosspay, taxamount, netpay; float const TAXRATE = 0.10; cout > employeeid; cout > hoursworked; cout > hourlyrate; grosspay = hoursworked * hourlyrate; taxamount = grosspay * TAXRATE; netpay = grosspay - taxamount; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!