Assignment 3
Due (Online) Wed, Sep 27, by 8:00 PM.
A restaurant pays its employees the following:
· It pays $6 per hour for the first 20 hours in the week.
· It pays $8.5 per hour for every additional hour.
Write a C++ program to compute the weekly salaries of employees at that restaurant. The input to the program is the number of hours worked and the output is the weekly salary of the employee. The input should be a nonnegative integer. So, if the user enters a negative integer, the program should print a warning (that the input should be nonnegative) and it should not compute and should not display the salary. On the other hand, if the input is a nonnegative integer, the program should compute and display the salary.