aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-02-13 14:37:44 -0600
committerMatthew Strapp <msattr@gmail.com>2019-02-13 14:37:44 -0600
commitffb2aae7def4eb34020dd512c74be1d76913c0a3 (patch)
treed2b7080e2329b02249769b9ff7909ec5d1e4c286
parentFix variable names for clarity (diff)
downloadhomework-ffb2aae7def4eb34020dd512c74be1d76913c0a3.tar
homework-ffb2aae7def4eb34020dd512c74be1d76913c0a3.tar.gz
homework-ffb2aae7def4eb34020dd512c74be1d76913c0a3.tar.bz2
homework-ffb2aae7def4eb34020dd512c74be1d76913c0a3.tar.lz
homework-ffb2aae7def4eb34020dd512c74be1d76913c0a3.tar.xz
homework-ffb2aae7def4eb34020dd512c74be1d76913c0a3.tar.zst
homework-ffb2aae7def4eb34020dd512c74be1d76913c0a3.zip
One last time!
-rw-r--r--ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp b/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
index 1a1ae4e..2de234c 100644
--- a/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
+++ b/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
@@ -14,7 +14,7 @@ using namespace std;
int main () {
int dependents, Hours;
int OT = 0; int Health = 0; //Set values to zero to prevent problems
- double SSI, State, Fed, GrossPay, NetPay;
+ double SocSec, State, Fed, GrossPay, NetPay;
cout << "How many hours did you work this week?: ";
cin >> Hours;
cout << "How many dependents do you have?: ";
@@ -26,13 +26,13 @@ int main () {
Health=35;
}
GrossPay = Hours * 16.78 + OT * 16.78 * 1.5;
- SSI = GrossPay * 0.06;
+ SocSec = GrossPay * 0.06;
Fed = GrossPay * 0.14;
State = GrossPay * .05;
- NetPay = GrossPay-SSI-Fed-State-Health-10; //$10 union dues
+ NetPay = GrossPay-SocSec-Fed-State-Health-10; //$10 union dues
cout << fixed << setprecision(2) << "Your gross (before withholdings) pay is $" << GrossPay << "." << endl
- << "Social Security withholding: $" << SSI << endl
+ << "Social Security withholding: $" << SocSec << endl
<< "Federal income tax withholding: $" << Fed << endl
<< "State income tax withholding: $" << State << endl
<< "Union Dues: $10" << endl