当前位置:网站首页>AcWing 610. Salary and bonus (implemented in C language)
AcWing 610. Salary and bonus (implemented in C language)
2022-06-28 11:58:00 【Q_ ming_ code】
Please write a program , Give you the name of a salesperson , Base salary and monthly sales .
Please calculate his monthly income .
It is known that the monthly income is equal to the base salary plus 15% Monthly sales of .
All data shall be kept to two decimal places .
Input format
The first line of input contains an uppercase letter no longer than 10 String , Indicates the name of the salesperson .
The second line contains a floating point number , Indicates the basic salary of the person .
The third line contains a floating point number , Represents the person's monthly sales .
Output format
The output format is TOTAL = R$ X,X Is the monthly income of the person .
Data range
0≤ Base salary , Monthly sales ≤10000.00
#include<stdio.h>
int main()
{
char a[10];
double bs,Ms,salary;
scanf("%s",a);
scanf("%lf%lf",&bs,&Ms);
salary=bs+Ms*0.15;
printf("TOTAL = R$ %.2lf",salary);
return 0;
}边栏推荐
- Swin, three degrees! Eth open source VRT: a transformer that refreshes multi domain indicators of video restoration
- Fruit FL studio/cubase/studio one music host software comparison
- Adding a new user in MySQL 5.7
- 1. print hourglass
- Recommended practice sharing of Zhilian recruitment based on Nebula graph
- setInterval、setTimeout和requestAnimationFrame
- Batch will png . bmp . JPEG format pictures are converted to Jpg format picture
- 100 important knowledge points that SQL must master: retrieving data
- Share the easy-to-use fastadmin open source system - practical part
- Is it safe to buy stocks and open an account on the account QR code of the CICC securities manager? Ask the great God for help
猜你喜欢

Day32 JS note event (Part 1) September 27, 2021

How to deploy the software testing environment?

Web3 security serials (3) | in depth disclosure of NFT fishing process and prevention techniques

Array method in JS 2021.09.18

智联招聘基于 Nebula Graph 的推荐实践分享

day33 js笔记 事件(下)2021.09.28

.NET混合开发解决方案24 WebView2对比CefSharp的超强优势

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system

Day30 JS notes BOM and DOM 2021.09.24

Is it feasible to be a programmer at the age of 26?
随机推荐
2. single digit statistics
Industry analysis - quick intercom, building intercom
Daily practice of C language - day 3: calculate the number of occurrences of sub strings of strings
[Beijing University of Aeronautics and Astronautics] information sharing for the first and second examinations of postgraduate entrance examination
Convert black mask picture to color annotation file
day23 js笔记 2021.09.14
IO stream of file and Base64
What method is required for word, PDF and txt files to realize full-text content retrieval?
Redis 原理 - List
使用ssm项目对Mysql8进行访问的时候,出现连接失败和一些错误的解决办法
建立自己的网站(18)
Packaging and publishing application of jetpack compose desktop version
For example, the visual appeal of the live broadcast of NBA Finals can be seen like this?
4. maximum continuity factor
Django -- MySQL database reflects the mapping data model to models
Contract quantitative trading system development | contract quantitative app development (ready-made cases)
买股票在中金证券经理的开户二维码上开户安全吗?求大神赐教
Characteristics of solar wireless LED display
分析list中有无重复数据且重复了几次
Day32 JS note event (Part 1) September 27, 2021