Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Josh Curl
- ABHS - Prog. I Division
- 10/12/10
- Prog. 1_12_4
- */
- #include<iostream>
- using namespace std;
- int main()
- {
- double regular;
- double holiday;
- double wage;
- cout << "How many regular did you work?" << endl;
- cin >> regular;
- cout << "How many holiday regular did you work?" << endl;
- cin >> holiday;
- cout << "How much money do you make per hour?" << endl;
- cin >> wage;
- double regular_pay = regular * wage;
- cout << "Regular Pay: " << regular_pay << endl;
- double overtime_pay = holiday * wage;
- cout << "Overtime Pay: "<< overtime_pay << endl;
- double gross_pay = regular_pay + overtime_pay;
- cout << "Gross Pay: " << gross_pay << endl;
- double fica = gross_pay * .075;
- cout << "FICA Tax:" << fica << endl;
- double fed = gross_pay * .28;
- cout << "Federal Tax:"<< fed << endl;
- double state = gross_pay * .04;
- cout << "State Tax:" << state << endl;
- cout << "Net Pay:"<< gross_pay - fica - fed - state << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement