# 計程車計費流程圖 ```flow st=>start: 開始 ed0=>end: 結束 in=>inputoutput: 搭乘里程數D(公尺) ou=>inputoutput: 車資費用T=[(D-1500)/200*5]+85(元) ou1=>inputoutput: 車資費用T=[(D-1500)/200無條件進位*5]+85(元) in1=>inputoutput: 車費為85元 cond=>condition: D>=1500公尺? mg0=>operation: 車資金額85+5元 cond1=>condition: (D-1500)/200是否>1 in2=>inputoutput: 車費為90元 cond2=>condition: (D-1500)/200是否整除 st->in->cond cond(yes)->mg0 cond(no)->in1->ed0 mg0->cond1 cond1(yes)->cond2 cond1(no)->in2->ed0 cond2(yes)->ou cond2(no)-> ``` # 台中計程車跳表 ```flow st=>start: 開始 ed=>end: 結束 io=>inputoutput: 搭乘里程D(公尺) ot=>inputoutput: 車資費用(元)F=S+90+C*5 ot2=>inputoutput: 車資費用(元)F=S+85+(C+1)*5 ot1=>inputoutput: 車資F=S+85元 ot3=>inputoutput: 車資費用:F+20 ot4=>inputoutput: 車資費用:F ot5=>inputoutput: 車資S=20元 ot6=>inputoutput: 車資S=0 cond=>condition: 搭車時段是否為23時~06時 cond1=>condition: D>=1500? cond2=>condition: 跳錶次數C是否有餘數 op1=>operation: 跳錶次數C = (D-1500)/200 st->cond cond(yes)->ot5->io cond(no)->ot6->io io->cond1 cond1(no)->ot1->ed cond1(yes)->op1 op1->cond2 cond2(yes)->ot2->cond3 cond2(no)->ot->cond3 ```