How do I set up Statutory Deduction in my c++ code
#include<iostream> using namespace std; int main() { float monday, tuesday, wednesday, thursday, friday, saturday, sunday, totalHours, payrate, basePay, overtime; int d, m, y; char slash_dummy; cout << "Enter pay rate: "; cin >> payrate; cout << endl; cout << "enter starting pay period date: "; cin >> m >>slash_dummy >> d >> slash_dummy >> y; cout << endl; cout << "pay week ends on thursday night at 12am" << " enter end of pay period date: "; cin >> m >> slash_dummy >> d >> slash_dummy >> y; cout << endl; cout << "Enter hours worked for friday: "; cin >> friday; cout << endl; cout << "Enter hours worked for saturday: "; cin >> saturday; cout << endl; cout << "Enter hours worked for sunday: "; cin >> sunday; cout << endl; cout << "Enter hours worked for monday: "; cin >> monday; cout << endl; cout << "Enter hours worked for tuesday: "; cin >> tuesday; cout << endl; cout << "Enter hours worked for wednesday: "; cin >> wednesday; cout << endl; cout << "Enter hours worked for thursday: "; cin >> thursday; cout << endl; totalHours = friday + saturday + sunday + monday + tuesday + wednesday + thursday; if (totalHours > 40) { overtime = (totalHours - 40)*1.5; basePay = (40 * payrate) + (overtime*payrate); } else { basePay= 40 * payrate; } cout<< "Your pay check without taxes should be: " << basePay << endl; cout << "total hours worked is: " << totalHours << endl; system("pause"); return 0; }