Answered step by step
Verified Expert Solution
Link Copied!

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 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes Browsers And Databases Data Mining Tools For Integrated Genomic Databases

Authors: Peter Schattner

1st Edition

0521711320, 978-0521711326

More Books

Students also viewed these Databases questions

Question

What is the IRR method?

Answered: 1 week ago

Question

What are the requirements for a successful hub city?

Answered: 1 week ago

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago