-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:Salary Calculator_ one

Luz3年前 (2021-05-10)题库258
Develop a program that will determine the gross pay for each of several
employees. The company pays “straight time” for the first 40 hours worked by each employee and
pays “time-and-a-half” for all hours worked in excess of 40 hours. The hourly rate of the worker is $10.00. Input the number of hours each employee worked last week, and determine
and display the employee's gross pay.
### Input Specification:
Input the hour the employee worked in integer.
### Output Specification:
Output the gross pay in integer.
### Sample Input 1:
```in
eighteen
```
### Sample Output 1:
```out
one hundred and eighty
```
### Sample Input 2:
```in
forty
```
### Sample Output 2:
```out
four hundred
```
### Sample Input 3:
```in
forty-five
```
### Sample Output 3:
```out
four hundred and seventy-five
```






answer:If there is no answer, please comment

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。