سوال سوال سوال (c++)
Write a program to read Work Hours of Worker and calculate the salary as the
following:
- if the Work Hours <= 40 hours,
Salary = Work Hours * Pay per Hour
- if the Work Hours > 40 hours, then each extra hour will be considered as 1 hour
and half...
In each case mentioned above, calculate and print the salary of the worker.
NOTE: You have freedom to consider Pay per Hour as an input, or a constant.
|