/* Get hourly wage Get hours worked Compute annual salary hours worked * hourly wage * 52 if annual salray is above the poverty line print above message else print below message */ #include #include using namespace std; const float POVERTY_LINE {12880.0}; const float WEEKS_PER_YEAR{52.0}; int main() { float hoursWorkedPerWeek; float hourlyWage; float annualSalary; cout << setprecision(2) << fixed << showpoint; cout << "Enter the hourly wage: "; cin >> hourlyWage; cout << endl; cout << "You make $" << hourlyWage << " per hour." << endl; cout << endl; cout << "How many hours do you work per week: "; cin >> hoursWorkedPerWeek; cout << endl; cout << "You work " << hoursWorkedPerWeek << " hours per week." << endl; annualSalary = hoursWorkedPerWeek * hourlyWage * WEEKS_PER_YEAR; cout << endl; cout << "Your annual salary is $" << annualSalary << endl; cout << endl; if( annualSalary > POVERTY_LINE) { cout << "You are above the poverty line" << endl; } else { cout << "You are below or at the poverty line" << endl; } return 0; }