/****************************************************************************** * This program computes the combined FICA taxes. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #undef NDEBUG #include #include #include #include std::locale utf8loc(std::locale(), new std::codecvt_utf8); using namespace std; static double const FICA_RATE = 0.0765; static double const GROSS_PAY = 1000; int main(int argc, char **argv) { setlocale(LC_ALL, "en_US.UTF-8"); wcout.imbue(utf8loc); wcin.imbue(utf8loc); double fica_tax = GROSS_PAY * FICA_RATE; double net_pay = GROSS_PAY - fica_tax; wcout << L"Gross Pay: " << GROSS_PAY << endl; wcout << L"FICA Tax: " << fica_tax << endl; wcout << L"Net Pay: " << net_pay << endl; return 0; }