第8周项目2加班费
来源:互联网 发布:网络法律法规 编辑:程序博客网 时间:2024/05/22 00:13
问题及代码:
/*
*Copyringht (c) 2014,烟台大学计算机学院
*All right reserved.
*文件名称: test.cpp
*作 者:马明城
*完成日期:2014年10月19日
*版本号: v1.0
*问题描述:::输入工资rate和工作时间hour,计算工资
*输入描述:输入两个整数,代表工作时间和工资
*程序输出:一个整数,代表工资
*/
#include <iostream>
using namespace std;
int main()
{
double r,h,s;
cout<<"输入rate:";
cin>>r;
cout<<"输入hour:";
cin>>h;
if(h<40)
s=r*h;
else
s=40*r+1.5*r*(h-40);
cout << "本周薪水:" <<s<< endl;
return 0;
}
运行结果:
0 0
- 第8周项目2加班费
- 第8周项目2-加班费
- 第8周项目2加班费
- 第8周项目2 加班费
- 第8周项目2-加班费,要不要?
- 第8周项目2-加班费,要不要
- 第8周项目2 加班费 要不要
- 第8周项目2-加班费,要不要?
- 第8周项目2-加班费,要不要
- 第8周项目2:加班费,要不要?
- 第8周项目2 加班费,要不要?
- 第8周项目2-加班费,要不要?
- 第8周项目2:加班费,要不要
- 第8周项目2 加班费,要不要?
- 第8周项目2-加班费,要不要?
- 第8周项目2-加班费,要不要?
- 2014秋C++第8周项目2参考-加班费
- 第8周项目加班费,要不要?
- VC下获取系统时间
- ORACLE 游标遍历
- 【HDU】病毒侵袭(AC自动机模板题)
- 分享8年开发经验,浅谈程序员职业规划
- C基础 - 常量与变量(2)
- 第8周项目2加班费
- 第六章 6.2.3节练习
- 浅谈初次搭建nginx+php+mysql遇到的问题
- 搭建Windows下的Android开发环境
- 如何将一个exe、bat等应用程序设置为Window服务?
- linux之等待队列--阻塞型驱动学习---学习笔记
- JS Array 操作
- cout控制符
- Zookeeper的主流应用场景实现思路