Professional Documents
Culture Documents
#include <iomanip>
int main()
{
double hours, hourlyrate;
double grosspay, taxes, netpay, taxamount;
string percentage;
cout << setprecision(2) << "gross pay: $ " << setw(6) << grosspay << endl;
cout << setprecision(2) << "taxes: " << setw(6) << taxamount <<
setw(5) << "(" << percentage << ")" << endl;
cout << setw(20) << "------";
cout << setprecision(2) << "net pay: $ " << setw(6) << netpay << endl;
return 0;
}