Example of Looping (Loops with Counters)

Problem:

Compute and print the gross salary, net salary, and net salary as a percentage of gross salary for 10 individuals. In addition, you must compute overtime pay if an individual has worked more than 40 hours during the week. Further, two overtime rates are applicable depending on whether the individual is an administrator or a line worker. You are given the following:

Hourly salary rate
Number of hours worked
Hourly overtime rate (Line worker)
Hourly overtime rate (Administrator)
Tax rate




Back to Previous Page

Document:
Local Date:
Last Modified On: