Question: INSTRUCTIONS Use C + + Visual Studios Name the source code for this project PayDay _ YourLastName.cpp . If an employee get paid every week

INSTRUCTIONS Use C++ Visual Studios
Name the source code for this project PayDay_YourLastName.cpp.
If an employee get paid every week and earns $1250 each pay period, in a year, the employee will get paid 52 times. Write a program that defines the following variables:
salary This variable will hold the amount of pay the employee earns each week. Initialize the variable with 1250.00.
weeks This variable will hold the number of pay periods in a year. Initialize the variable with 52.
grossPay This variable will hold the employee's gross annual pay, which will be calculated.
taxRate This variable will hold the tax rate and will hold the number 0.285(assuming 28.5% total tax rate for this employee)
totalTax This variable will hold the total amount of taxes to be taken out of the employee's pay check and will be calculated.
netPay This variable will hold the net pay amount for the year for the employee and will be calculated.
The program should calculate the employee's total annual pay by multiplying the employee's salary by the number of weeks in a year and store the result in the grossPay variable. The totalTax amount will be calculated by multiplying the grossPay by the taxRate and assigning the result to totalTax. The netPay will be the difference between the grossPay and the total Tax and will be calculated by subtracting the totalTax from the grossPay and storing the result in netPay.
Display the all calculated values, with corresponding labels to the screen. An example might look like:
Gross Pay for this employee is: 65000.00
Total Taxes for this employee is: 18525.00
Net Pay for this employee is: 46475.00
(If you don't get the decimal values to display on this project, that is ok, so long as you mathematics are correct).
When you are satisfied that your project is working correctly (and provides accurate results), upload only the source code (the .cpp file) to this submission link. You get only one chance to upload the correct file for each assignment so make sure you are uploading the correct file each time.
 INSTRUCTIONS Use C++ Visual Studios Name the source code for this

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!