The purpose of the program is to tell the user that the weekly salary is in on of three ranges, less than 200, between 200 and 800 and greater than 800.
I need help knowing the error/s and need to add and use one additional preprocessor directive that might help with calculation or showing the results

#include <iostream>
using namespace std;

int main() {
    const int MAX_HOURS_IN_WEEK = 168;
    const int MAX_WAGE = 100;
    const int LOWER_SALARY = 200;
    const int UPPER_SALARY = 800;

    int hourlyWage;
    int workHoursPerWeek;
    int weeklySalary;

    cout << "How many hours do you work per week?" << endl;
    cin >> workHoursPerWeek;
    if (workHoursPerWeek < 0 && workHoursPerWeek > MAX_HOURS_IN_WEEK) {
        cout << "Invalid number of hours per week." << endl;
        return -1;
    }

    cout << "What is your hourly wage?" << endl;
    cin >> hourlyWage;
    if (hourlyWage > MAX_WAGE) {
        cout << "An hourly wage greater than 100 requires executive approval." << endl;
    } else if (hourlyWage < 0) {
        cout << "Invalid hourly wage." << endl;
        return -1;
    }

    weeklySalary = hourlyWage * workHoursPerWeek;

    if (weeklySalary < LOWER_SALARY) {
        cout << "The weekly salary is less than 200." << endl;
    }
    if (weeklySalary <= UPPER_SALARY) {
        cout << "The weekly salary is between 200 and 800." << endl;
    } else {
        cout << "The weekly salary is greater than 800." << endl;
    }

    return 0;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.