资 源 简 介
出租车自动计价器设计
要求:
计一个出租车计价器。
该计价器的计费系统:行程 3公里内,且等待累计时间2分钟内,起步费为10元;3公里外以每公里1.6元计费,等待累计时间2分钟外以每分钟以1.5元计费。
并能显示行驶公里数、等待累计时间、总费用。
-Taxi automatic meter design requirements: 1 meter taxi meter. The meter" s billing system: stroke within 3 km, and the total waiting time of 2 minutes, the starting fee is 10 yuan 3 kilometers away, charging 1.6 yuan per kilometer, waiting outside the aggregate time of 2 minutes to 1.5 yuan per minute billing. And can show the number of road miles, waiting for the accumulated time, the total cost.