From 4f494e8bb3e9d08dc19fa15ee2ece290a6dfbe2b Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 13 Feb 2019 14:32:14 -0600 Subject: *Meaningful comments intensify* --- ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ee1301') 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; -- cgit v1.2.3