web analytics

Computer Programming Methodologies

computer programming methodologies
computer programming methodologies
Question Methodology Data from top to bottom?

Ok so this is the problem of work on IM: George Markos, Secretary of salary Microstep company wants a program to calculate the gross salary of an employee. George will enter the hours worked and hourly rate. Employees who work more than 40 hours receive one and a half to 40 hours. Employees who work more than 60 hours, you will receive two more times in 60 hours. George wants the program to show the gross pay employee. I appreciate that entries and exits, but I do not have employees who work more than 40/60 hours party. In addition, a bit of trouble with the main module. I know that the employee's gross salary would be, but what happens to enter the hourly rate of pay and hours worked? Thank you for all help Sorry guys, I kind of feel-Down structure above table, the table tree. I do not know what the main modules of the problem.

This assumes that you already have the number of hours worked and the hourly rate: float = 0.0 regularPay; overtimePay float = 0.0; doubleOvertimePay float = 0.0 float grossPay if (numHoursWorked> 40) (= 40 * regularPay Payrat if (numHoursWorked> 60) (overtimePay = 20 * 1.5 * Payrat; doubleOvertimePay = (NumHoursWorked – 60) * * Payrat 2.0) other overtimePay = (numHoursWorked – 40) * * Payrat 1.5;) * = other regularPay numHoursWorked Payrat; regularPay grossPay = + + OvertimePay doubleOvertimePay; You may need more if necessary, record the number of hours in each variable. Basically, all over 60 years gets its own pace. Anything over 40 gets its own pace, and all children under 40 years get their own pace. Hope this helps!

Leave a Reply