1、附录 程序设计标准轴载累计作用次数程序设计基于毕业设计需求,为了简化水泥路面计算过程,同时也完成了毕业设计中程序编 写的任务,作者用C 语言编写了标准轴载累计作用次数程序设计进行设计年限 内标准轴载累计作用次数的计算。本程序采用JTG D40-2011水泥路面设计规范,各参数取值满足规范要求。运行时,请按提示输入指定的内容后按Enter,直至出现运行结果,到End 表示程序运行结束。1 程序设计:#include main()doubleNs,Ne,Pq=11.5,16.5,28.7,25.75,28.7,23.7,49,50.2,60, Ph=23,23,68.2,59.5,69.2,69.
2、2,101.6,104.3,100,d, pro, sum, a, c, gr;int lane, i, t,N;char b;sum=0; d=1;printf(“Please put in someparameters.n“);printf(“Volume of traffic: n“); printf(“minivan:n“); scanf(“%d“, printf(“microbus(SH130):n“); scanf(“%d“,printf(“big bus(CA50):n“); scanf(“%d“, printf(“small truck(BJ130):n“); scanf(“%
3、d“,printf(“medium truck(CA50):n“); scanf(“%d“, printf(“medium truck(EQ140):n“); scanf(“%d“,printf(“big truck(JN150):n“); scanf(“%d“, printf(“large truck(KB222):n“);scanf(“%d“,printf(“trailer:n“); scanf(“%d“,printf(“please put in growth rate, like 0.085:n“);scanf(“%f“,printf(“Please put in number of
4、that how many traffic lane the highwayhave:n“); scanf(“%d“,if(lane=4)printf(“Please choose a number between 0.5-0.75. n“); scanf(“%f“,elseswith(lane)case1: a=1.0;case2: printf(“Please choose a number between 0.8-1.0. n“); scanf(“%f“,break;case3: printf(“Please choose a number between 0.6-0.8. n“);sc
5、anf(“%f“,break; default: printf(“errorn“);break;printf(“Please choose your highway classificatian as A, B or C: n“) printf(“A: expressway, senior road, fee sation n“)printf(“B: junior road(lane width more than 7m)n:)printf(“C: junior road(lane width amount to 7 or less than 7m)n:) b=getchar();swith(
6、b)caseA: printf(“Please choose a number between 0.17-0.22. n“); scanf(“%f“,t=30;break;caseB: printf(“Please choose a number between 0.34-0.39. n“); scanf(“%f“,t=20;break;caseC: printf(“Please choose a number between 0.54-0.62. n“); scanf(“%f“,t=20;break;default: printf(“errorn“);break;for(i=0;i2*pow
7、107)printf(“It is super heavy traffic volume.n“); if(pow10(6)=Ne=2*pow10(7)printf(“It is heavy traffic volume.n“); if(3*pow10(4)=Ne=pow10(6)printf(“It is medium traffic volume.n“); if(Ne3*pow10(4)printf(“It is light traffic volume.n“);printf(“End.n“);2 程序运行结果按提示输入数据,然后得到运行结果。 (注:表示 Enter,前为输入的内容)Ple
8、ase put in some parameters.Volume of traffic:minivan:3100microbus(SH130):980big bus(CA50):218small truck(BJ130):2300medium truck(CA50):1079medium truck(EQ140):1370big truck(JN150):890heavy truck(KB222):550trailer:450please put in growth rate, like 0.07:0.09Please put in number of that how many traffic lane the highway have:2 Please choose a number between 0.7-0.85.0.8Please choose your highway classificatian as A, B or C:A: expressway, senior road, fee sation B: junior road (lane width more than 7m) C: junior road (lane width less than 7m) ANe=11751083.8I t is heavy traffic volume.End.