[CSCI 116]
This assignment will introduce you to the basic elements of C++ program and the process of solution designing, compiling, executing, and testing a C++ program. Do all of the following work by the date due.
Write a program that calculates and prints the monthly paycheck for an
employee. The net pay is calculated after taking the following deductions:
Federal Income
Tax: 15%
State Tax: 3.5%
Social Security
Tax: 5.75%
Medicare/Medicaid
Tax: 2.75%
Pension Plan: 5%
Health Insurance:
$75.00
Your program
should prompt the user to input the gross amount and the employee name. The
output will be displayed on the screen. Format your output to have two decimal
places. A sample output follows:
Bill robinson
Gross
Amount: …………... $ 3575.00
Federal
Tax: ……………… $ 536.25
State
Tax: ………………… $ 125.13
Social
Security Tax: …….. $ 205.56
Medicare/Medicaid
Tax: … $ 98.31
Pension
Plan: ……………. $ 178.75
Health
Insurance ………... $ 75.00
Net
Pay ……………………. $ 2356.00
Note that the
first column is left-justified and the right column is right-justified.
Note 1: You need to write up a short paragraph to describe your solution on paper before you typed on keyboard. Documentation part is a part of the solution and it will help you organize your thoughts.
Note 2: Your programs must execute properly using the MS Visual Studio .Net C++ IDE, on any computer of your instructor's choosing, in any public lab.
Note 3: If you can get your code work correctly, submit both source code on paper and diskette as we have discussed before. When you submit your source code on paper, you also need to submit test result. Usually you need to test your program multiple times using different inputs to make sure that your solution works for different situations.
Note 4: You are strongly encouraged to go over sample code, quick
review and all other programming exercises at the end of each chapter.