From 86e5aa3b17d6adeb79d66077d5ca757789c0b5b8 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 13 Feb 2019 15:39:52 -0600 Subject: Fix meaningful comments --- ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ee1301/wk2') 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 -- cgit v1.2.3