Amex Johnny

Amex Johnny

  • NA
  • 20
  • 5.6k

C#.. Can someone write code for this question?? :-)

Apr 19 2015 10:20 AM
INSTRUCTIONS
-Use C#.Net 2010
-Write ONE program for that question.
-Use suitable labels for your output

1) A factory employs n=20 staff who are paid an hourly rate of $12.50. Their salaries are calculated as follows:



        salary        = hours * rate                           for hours between 0 and <=40
                        = 300 + (hours-40)*rate*1.5        for hours between >42 and <=60
                        = 525 + (hours-60)*rate*2.0        for hours >60

Write a program to generate a report that resembles the below.


                                                       PAYROLL REPORT        
        No.                Employee name                        Hours                       Salary($)
        1                    AAA                                       10                             75.00
        2                    BBB                                       45                             356.25
        3                    CCC                                       60                             675.00
        ....(Until 20)


                              Total salary = $....

Answers (1)