摘要
通过Mathematica编程语言,以循环语句为主,不断地运用到If,Which等函数的嵌套,并把乘车人的身份(成人/学生),身高(成人/儿童),乘车方式(软座/硬座),站次等有关问题联系在一起,设计出了模拟火车售票程序。
The paper will show the process of simulating train booking tickets by progarmming language of Mathematica, where loop is the most important, and nested subroutine of "if", "which", etc. are applied continuously by considering many related problems, such as, pepole identity (adult or student), height (adult or child), way by train (soft seat or hard seat ), stations and so on.
出处
《黑龙江科技信息》
2011年第18期101-101,共1页
Heilongjiang Science and Technology Information