资源描述:
《东莞理工学院c语言程序设计作业实验二》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、C语言程序设计作业实验二2.1/*程序功能:输入两个整数a和b,求两数之和,两数之差的绝对值。*//*提示:除在指定位置添加语句外,请不要改动程序中的其他内容。*/#include#includevoidmain(){inta,b,sum,diff;scanf("%d%d",&a,&b);//请在两条星线之间填入相应的代码,求两数之和,两数之差的绝对值。/************************************************************/sum=a+b;diff=abs(a-b);/*
2、***********************************************************/printf("a+b的和等于%d",sum);printf("a-b的差的绝对值等于%d",diff);}2.2/*程序功能:输入存款金额money、存期year和年利率rate,根据公式计算到期时的本息和sum,输出结果保存两位小数。*/coefficientnotgreaterthan1.3;Highefficiency:control1hourtraveltimebetweenanytwopointswithintheva
3、riousgroupswithintheareauptohalfanhour,1-houraccesstotheairport,45minreachedthecity'smaintraffichub,externalhighwayforhalfanhourwiththemainchannelsconnectingbus1.5hoursbetweenanytwogroupsofcoreareas;Intensive:2030transitsharerateofaround35%,2050bussharingrateof45%percent.3rdchapte
4、r,Yibincity,trafficsituationandGeneral...3.1.1citytrafficstatus1,externaltransportpassengerandcargotrafficinYibincity,trafficatthepresentmainrailway,highway,waterwayandairfourmodesofpassengerandfreighttransport,thereandculturalheritage,highlightingtheculturaltasteandshapecharacter
5、isticsofthecityinYibin.Accordingtoforecasts,vision2050populationwillreach2.1millionpeopleinthecenterofYibincity,urbanlandisaround210km2.Figure2.6-12050figure2.7landuseplanningintheCenterCity,Yibincitydevelopmentrequiresthedevelopmentofbusrapidtransitconstructionandsocio-economicde
6、velopmenttrends,Yibincitycoordination,supportingurbanspacelayoutandinfrastructurenetworks,transportorganized,internalandexternaltraffichubsmoothlylinking,realizingsustainabledevelopmentofYibincityintegratedtransportationsystem.Concretecanbesummarizedas,accessible,efficient,intensi
7、veandsustainable.Accessibility:Centralbuilt-uparearoadnetworkdensityofabout7.0km/km2;buslinedensityof3-4km/km2,bustransfer/*提示:除在指定位置添加语句外,请不要改动程序中的其他内容。*///请在两条星线之间填入相应的代码,包含数学库函数/**********************************************/#include/************************************
8、**********/#includevoidm