aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-02-13 14:32:14 -0600
committerMatthew Strapp <msattr@gmail.com>2019-02-13 14:32:14 -0600
commit4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b (patch)
treeec9a974aaa9d30ac473102fae94c5b53c39f11b3
parentThe small stuff is important too (diff)
downloadhomework-4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b.tar
homework-4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b.tar.gz
homework-4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b.tar.bz2
homework-4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b.tar.lz
homework-4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b.tar.xz
homework-4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b.tar.zst
homework-4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b.zip
*Meaningful comments intensify*
-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 0fe6406..e9fabaf 100644
--- a/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
+++ b/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp
@@ -13,14 +13,14 @@ using namespace std;
int main () {
int dependents, Hours;
- int OT = 0; int Health = 0; //Set values to zero to prevent massive discrepencies
+ int OT = 0; int Health = 0; //Set values to zero to prevent problems
double SSI, MN, Fed, GrossPay, NetPay;
cout << "How many hours did you work this week?: ";
cin >> Hours;
cout << "How many dependents do you have?: ";
cin >> dependents;
if (Hours > 40) {
- OT=Hours-40;
+ OT=Hours-40; //Overtime pay is extra so it needs to be seperate
}
if (dependents >= 3) {
Health=35;