红联Linux门户
Linux帮助

编程问题。。。不会做...

发布时间:2010-03-14 20:01:20来源:红联作者:dragonballz52
A worker is paid $26 per hour. In any week, overtime is paid for any hours more than 40. The overtime rate is one and a half times normal, except for Sunday when it is twice normal.
You are to write a C program which will compute the worker’s weekly pay given the total hours worked in that week and the number of those hours that are worked on Sunday.
There will be one line of input. It will contain the total hours worked in the week and the number of Sunday hours worked during the week. Each will be an integer.
The output will be a single number, the pay earned in the week.
Example
Input Output

30 0 780
Limits: Both numbers will be >= 0, and the Sunday hours will not be more than the total hours.
Standard simplicity measure: 2
谁是编程高手啊,,这个困扰了我好半天呢。。。。。哪位帮帮忙呢~~~Orz
文章评论

共有 3 条评论

  1. dragonballz52 于 2010-03-15 17:05:01发表:

    没高手啊。。。。。。高手快来啊

  2. koenigseg 于 2010-03-15 01:43:12发表:

    召唤高手

  3. koenigseg 于 2010-03-15 01:43:03发表:

    看不懂