一、N-S流程图;

二、源代码;
# define _CRT_SECURE_NO_WARNINGS
# include <stdio.h>
int main()
{
//初始化变量值;
int I = 0;
float bonus = 0;
//提示用户;
printf("请输入利润I:");
//获取用户值;
scanf("%d", &I);
//计算不同区间的利润值;
if (I <= 100000)
{
//运算;
bonus = I * 0.1;
//输出结果;
printf("您的奖金为:%.2f", bonus);
}
else if (I > 100000 && I <= 200000)
{
//运算;
bonus = (I - 100000) * 0.075 + 100000 * 0.1;
//输出结果;
printf("您的奖金为:%.2f", bonus);
}
else if (I > 200000 && I <= 400000)
{
//运算;
bonus = (I - 200000) * 0.05 + 100000 * 0.1 + 100000 * 0.075;
//输出结果;
printf("您的奖金为:%.2f", bonus);
}
else if (I > 400000 && I <= 600000)
{
//运算;
bonus = (I - 400000) * 0.03 + 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05;
//输出结果;
printf("您的奖金为:%.2f", bonus);
}
else if (I > 600000 && I <= 1000000)
{
//运算;
bonus = (I - 600000) * 0.015 + 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + 200000 * 0.03;
//输出结果;
printf("您的奖金为:%.2f", bonus);
}
else if (I > 1000000)
{
//运算;
bonus = (I - 1000000) * 0.01 + 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + 200000 * 0.03 + 400000 * 0.015;
//输出结果;
printf("您的奖金为:%.2f", bonus);
}
return 0;
}
三、运行结果;



![[2021最新]Java时间戳和日期时间互转换](https://img-blog.csdnimg.cn/20210420110509853.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ0NDkxNzA5,size_16,color_FFFFFF,t_70)
















