已知某公司员工的保底薪水为500某月所接工程的利润profit整数与利润提成的关系如下所示计量单位:元。计算员工的当月薪水。计算当月薪水N-S流程图:工程利润profit profit≤10001000profit≤2000 2000profit≤5000 5000profit≤10000 10000profit提成比率没有提成提成10提成15提成20提成25
st=>start: 开始
op1=>operation: 输入利润profit
cond1=>condition: profit≤1000?
op2=>operation: 薪水=500
op3=>operation: 薪水=500+profit*0.1
cond2=>condition: 1000<profit≤2000?
op4=>operation: 薪水=500+1000*0.1+(profit-1000)*0.15
cond3=>condition: 2000<profit≤5000?
op5=>operation: 薪水=500+1000*0.1+1000*0.15+(profit-2000)*0.2
cond4=>condition: 5000<profit≤10000?
op6=>operation: 薪水=500+1000*0.1+1000*0.15+3000*0.2+(profit-5000)*0.25
op7=>operation: 薪水=500+1000*0.1+1000*0.15+3000*0.2+2500*0.25+(profit-10000)*0.3
e=>end: 结束
st->op1->cond1
cond1(yes)->op2->e
cond1(no)->cond2
cond2(yes)->op3->e
cond2(no)->cond3
cond3(yes)->op4->e
cond3(no)->cond4
cond4(yes)->op5->e
cond4(no)->op6->e
``
原文地址: https://www.cveoy.top/t/topic/cR6r 著作权归作者所有。请勿转载和采集!