🔒 Closed C++ programming

Status
Not open for further replies.

Soobin_ms

Eternal Poster
1. Consider the problem of calculating a paycheck. The pay is calculated by multiplying the number of hours worked by the rate of pay. All hours greater than 40 are calculated at time and half. Correct any steps below that are in error.
a. Get the number of hours worked.
b. Get the rate of pay.
c. Get the amount pay.
d. Find the amount of pay at the base salary.
e. Find the number of overtime hours.
f. Find the number of hours at the regular pay.
g. Find the amount of pay at overtime rate.
h. Calculate the paycheck using the following equation:
Pay=hoursWorked * rateOfPay + overtimeHours * pay* 1.5

Patulong po. Beginner palang po kasi
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 371
    Views
  • 2
    Participants
Last reply from:
Soobin_ms

Trending Topics

Online now

Members online
1,048
Guests online
3,132
Total visitors
4,180

Forum statistics

Threads
2,309,553
Posts
29,150,939
Members
1,188,478
Latest member
zx23101988
Back
Top