Created
September 30, 2013 16:38
-
-
Save anonymous/6766495 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//輸出cost | |
double getTypeACost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeBCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeCCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeDCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeECost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
//輸出真正花費(cost低於資費時,還是得花資費的錢) | |
double getTypeARealCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeBRealCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeCRealCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeDRealCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
double getTypeERealCost(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
//算出Type的編號, 從1~5 | |
int getCheapestType(double I-nc, double E-nc, double lc, int I-n SMS, int E-n SMS); | |
//輸入Type的編號輸出type的錢 | |
double getTypeCost(int type); | |
//輸入Type的編號輸出type真正的錢 | |
double getTypeRealCost(int type); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment