Professional Documents
Culture Documents
int main() { double rate; double hours; double wages; double wagesatax; double clothes; double school; double bonds; system("cls"); wages = rate * hours; wagesatax = SUMMER_JOB_INCOME * wages; clothes = CLOTHES_OTHER_ACCESSORIES * (wages - wagesatax); school = SCHOOL_SUPPLIES * (wages-(wagesatax + clothes)); bonds = SAVING_BONDS * (wages-(wagesatax + clothes + school)); cout << "Enter the pay rate for an hour: "; cin >> rate; cout << endl; cout << "Enter number of hours worked each week: "; cin >> hours; cout << endl; cout << "The wages are:" << wages << endl; cout << "Total wages before taxes:" << wages << endl; cout << "Total wages after taxes:" << wagesatax << endl; cout << "Total money spend on clothes and other accessories :" << clothes << endl; cout << "Total money spend on school supplies :" << school << endl; cout << "Total money spend on saving bonds :" << bonds << endl; return 0; }