Question: In implementing this, you must use numeric variables, constants, arithmetic expressions, and assignment statements. You will need to consider mixed data types in expressions and

In implementing this, you must use numeric variables, constants, arithmetic expressions, and assignment statements. You will need to consider mixed data types in expressions and with assignment. The results are predictable, and you need to discover how to control this behavior using an appropriate type when declaring some variables or where and how to use a type cast when it is not practical or possible to change a variables type. You also need to be aware of integer division and how to correct it to get real division.

*/

#include #include using namespace std;

int main() { // Constants - you must use these where appropriate below const int EMPLOYEE_1_HOURS = 35; const int EMPLOYEE_2_HOURS = 25; const int EMPLOYEE_3_HOURS = 20; const int NUMBER_OF_EMPLOYEES = 3; const float HOURLY_PAY = 9.65; const float TAX_RATE = 0.28;

// TODO - Step 1: // // Declare the following variables: // - type float, named employee1GrossPay, to hold Employee 1's gross pay (before deductions) // - type float, named employee2GrossPay, to hold Employee 2's gross pay (before deductions) // - type float, named employee3GrossPay, to hold Employee 3's gross pay (before deductions) // - type float, named employee1Taxes, to hold Employee 1's taxes // - type float, named employee2Taxes, to hold Employee 2's taxes // - type float, named employee3Taxes, to hold Employee 3's taxes // - type float, named employee1NetPay, to hold Employee 1's net pay (after tax deduction) // - type float, named employee2NetPay, to hold Employee 2's net pay (after tax deduction) // - type float, named employee3NetPay, to hold Employee 3's net pay (after tax deduction) // - type int, named totalEmployeeHours, to store hours worked by three employees // - type float, named averageHoursWorked, to store average hours an employee worked // - type float, named totalNetPay, to store the net pay (after taxes) of all three employees

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!