/****************************************************************************** * This program computes the combined FICA taxes. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #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 ficaTax = GROSS_PAY * FICA_RATE; double netPay = GROSS_PAY - ficaTax; wcout << L"Gross Pay: " << GROSS_PAY << endl; wcout << L"FICA Tax: " << ficaTax << endl; wcout << L"Net Pay: " << netPay << endl; return 0; }