You are on page 1of 1

#include <iostream> using namespace std; const const const const double double double double SUMMER_JOB_INCOME = 0.

14; CLOTHES_OTHER_ACCESSORIES = 0.10; SCHOOL_SUPPLIES = 0.01; SAVING_BONDS = 0.25

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; }

You might also like