Question
Create a C++ program to calculate retirement amount deducted, taxes paid, and net pay, given an employee name and gross pay entered by the user.
Create a C++ program to calculate retirement amount deducted, taxes paid, and net pay, given an employee name and gross pay entered by the user. Notes: Use named constants to assign a tax deduction rate of .3 and a retirement deduction rate of .05. Use a single variable for the employee name. To calculate tax amount, youll subtract the retirement deduction from gross pay first; then calculate the taxes from the amount left over (because the retirement deduction is not usually taxed when an employee is paid). This is called adjusted gross pay. Output all money values as currency and the 2 decimal rates as percent with 1 decimal place (Hint: you'll need to convert your decimal rates to percent form in the printf() statements for those by mulitplying the contant by 100.0). Desk-check this program with a gross pay of $2,566.00.
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