aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk2
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-02-13 15:39:52 -0600
committerMatthew Strapp <msattr@gmail.com>2019-02-13 15:39:52 -0600
commit86e5aa3b17d6adeb79d66077d5ca757789c0b5b8 (patch)
treee0c22c7e58b508c66b989780c1ef9af2d2208bd2 /ee1301/wk2
parentMeaningful comments (diff)
downloadhomework-86e5aa3b17d6adeb79d66077d5ca757789c0b5b8.tar
homework-86e5aa3b17d6adeb79d66077d5ca757789c0b5b8.tar.gz
homework-86e5aa3b17d6adeb79d66077d5ca757789c0b5b8.tar.bz2
homework-86e5aa3b17d6adeb79d66077d5ca757789c0b5b8.tar.lz
homework-86e5aa3b17d6adeb79d66077d5ca757789c0b5b8.tar.xz
homework-86e5aa3b17d6adeb79d66077d5ca757789c0b5b8.tar.zst
homework-86e5aa3b17d6adeb79d66077d5ca757789c0b5b8.zip
Fix meaningful comments
Diffstat (limited to 'ee1301/wk2')
-rw-r--r--ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp b/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
index 7afd48e..431f11c 100644
--- a/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
+++ b/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
@@ -23,14 +23,14 @@ int main () {
if (Hours > 40) { //Every hour over 40 constitutes as overtime
OT=Hours-40;
}
- if (Dependents >= 3) { //More than 3 dependents carries a fee
+ if (Dependents >= 3) { //More than 3 dependents carries a fee
Health=35;
}
GrossPay = Hours * 16.78 + OT * 16.78 * 1.5;
SocSec = GrossPay * 0.06;
Fed = GrossPay * 0.14;
State = GrossPay * .05;
- NetPay = GrossPay-SocSec-Fed-State-Health-10; //$10 union dues
+ NetPay = GrossPay-SocSec-Fed-State-Health-10; //$10 union dues are constant
cout << fixed << setprecision(2) << "Your gross (before withholdings) pay is $" << GrossPay << "." << endl
<< "Social Security withholding: $" << SocSec << endl