• 大小: 47KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-03
  • 语言: Java
  • 标签: java  出租车  计费  

资源简介

出租车起步价14元,含3公里 起步价之后,每公里2.5元 晚上11点之后(含),次日6点前(不含)起步价18元,含3公里。计价以上车时间为准,不考虑乘坐期间从白天到晚上的情况。 晚上起步价之后,每公里3元 10公里之后,白天每公里3.5元,晚上每公里4.7元 外环的出租车10公里之外的价格与10公里之内相同。外环与内环是出租车的属性,也就是说一辆外环的出租车在内环拉了客人,并行使到了外环,整段旅程都是外环的计费策略。

资源截图

代码片段和文件信息

package homework.taxibilling.contants;

public final class TaxiBillRuleConstants {
// 白天起步价
public final static double INITIAL_PRICE_DAYLIGHT = 14.0d;
// 夜间起步价
public final static double INITIAL_PRICE_NIGHT = 18.0d;
// 白天起步价最大距离
public final static int INITIAL_MAX_DISTANCE_DAYLIGHT = 3;
// 夜间起步价最大距离
public final static int INITIAL_MAX_DISTANCE_NIGHT = 3;
// 白天超出起步价距离,每小时价格
public final static double UNIT_PRICE_DAYLIGHT = 2.5d;
// 夜间超出起步价距离,每小时价格
public final static double UNIT_PRICE_NIGHT = 3d;
// 公里临界值:超出后里程单价可能发生变动
public final static int CRITICAL_DISTANCE = 10;
// 内环:白天超临界值后单价
public final static double INNER_UNIT_PRICE_CRITICAL_DAYLIGHT = 3.5d;
// 内环:夜间超临界值后单价
public final static double INNER_UNIT_PRICE_CRITICAL_NIGHT = 4.7d;
// 内环:白天超临界值后单价
public final static doub

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-12 10:00  homework-parent\
     文件         378  2017-09-12 10:00  homework-parent\.classpath
     文件         544  2017-09-12 09:44  homework-parent\.project
     目录           0  2017-09-12 09:44  homework-parent\.settings\
     文件          55  2017-09-12 10:00  homework-parent\.settings\org.eclipse.core.resources.prefs
     文件         652  2017-09-12 09:47  homework-parent\.settings\org.eclipse.jdt.core.prefs
     文件          86  2017-09-12 09:44  homework-parent\.settings\org.eclipse.m2e.core.prefs
     文件       11298  2017-09-12 09:52  homework-parent\pom.xml
     目录           0  2017-09-12 09:44  homework-parent\target\
     目录           0  2017-09-12 09:47  homework-parent\target\classes\
     目录           0  2017-09-12 09:47  homework-parent\target\classes\meta-INF\
     文件         104  2017-09-12 09:47  homework-parent\target\classes\meta-INF\MANIFEST.MF
     目录           0  2017-09-12 09:47  homework-parent\target\classes\meta-INF\maven\
     目录           0  2017-09-12 09:47  homework-parent\target\classes\meta-INF\maven\homework.parent\
     目录           0  2017-09-12 09:47  homework-parent\target\classes\meta-INF\maven\homework.parent\homework-parent\
     文件         245  2017-09-12 09:47  homework-parent\target\classes\meta-INF\maven\homework.parent\homework-parent\pom.properties
     文件         769  2017-09-12 09:47  homework-parent\target\classes\meta-INF\maven\homework.parent\homework-parent\pom.xml
     目录           0  2017-09-12 09:47  homework-parent\target\classes\homework\
     目录           0  2017-09-12 09:47  homework-parent\target\classes\homework\parent\
     文件         545  2017-09-12 09:47  homework-parent\target\classes\homework\parent\App.class
     目录           0  2017-09-12 09:47  homework-parent\target\test-classes\
     目录           0  2017-09-12 09:47  homework-parent\target\test-classes\homework\
     目录           0  2017-09-12 09:47  homework-parent\target\test-classes\homework\parent\
     文件         617  2017-09-12 09:47  homework-parent\target\test-classes\homework\parent\AppTest.class
     目录           0  2017-09-12 09:43  taxi-billing\
     文件         827  2017-09-12 20:03  taxi-billing\.classpath
     文件         541  2017-09-12 09:43  taxi-billing\.project
     目录           0  2017-09-12 09:43  taxi-billing\.settings\
     文件         115  2017-09-12 09:43  taxi-billing\.settings\org.eclipse.core.resources.prefs
     文件         652  2017-09-12 20:03  taxi-billing\.settings\org.eclipse.jdt.core.prefs
     文件          86  2017-09-12 09:43  taxi-billing\.settings\org.eclipse.m2e.core.prefs
............此处省略63个文件信息

评论

共有 条评论