Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 PayDayYourLastName.cpp
If an employee get paid every week and earns $ each pay period, in a year, the employee will get paid 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
weeks This variable will hold the number of pay periods in a year. Initialize the variable with
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 assuming 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:
Total Taxes for this employee is:
Net Pay for this employee is:
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started