- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
3 Pseudocode, Flowcharts and Python Goadrich(3伪代码,流程图和Python Goadrich)
3 Pseudocode, Flowcharts and Python
In Chapter 2, we learned how to store information in the computer and the
rules governing the manipulation of numbers and logical values. Now we
will look at how to organize those rules to create simple programs.
3.1 Sequential Order
Programs are similar to books. In a book, you start reading from the top of
the page and continue to the end of the page. In English, each line of text in
the book contains information that is read from left to right. Likewise, we
write programs for the computer to read in this order from left to right.
Remember assignment statements from the previous chapter, a = 3 means
that a stores the value of 3, not that 3 is a.
Now that we read each line appropriately, we will always start reading from
the top line of our program and continuing until the last line in the program.
The programs that we will look at in this chapter are all executed in
sequential order. We will start with the first line and then continue to the
next line. This sequence control structure can be represented with
pseudocode, flowcharts, and Python code.
3.2 Pseudocode
First we will look at outlining a program using pseudocode. Pseudocode is a
language very close to English that allows us to represent a program
concisely. The only thing you need is a statement to show where you are
starting and where you are ending a program. We will be using the word
Start for the start point and the word End to show the finish point. Each
program will contain statements to accomplish our goal; this will satisfy step
3 from Chapter 1.
9
3.3 Flowcharts
A more visual way to see the behavior of a program is a flowchart which is
appealing to the visual learner. A fl
您可能关注的文档
- 2008 Special Design Provisions for Wind and (2008年规定风能和特殊的设计).pdf
- 2008 Standard for Method of Measuring (2008标准的测量方法).pdf
- 2008 JEEP GRAND CHEROKEE WKJeeps(2008年吉普大切诺基,WKJeeps).pdf
- 2008 Turbidite Architecture in Proximal Foreland (2008年近端前陆浊积体系结构).pdf
- 2007 Aerolite brochure RVUSA(2007陨石小册子RVUSA).pdf
- 2010 Model Year Scheduled Maintenance Guide(2010年计划的维护指南).pdf
- 2009 magnetpowertransmission(2009年magnetpowertransmission).pdf
- 2010 Project Management Report Oracle(甲骨文公司2010年项目管理报告).pdf
- 2009 BMW 3 Series Coupe 328i 328i xDrive (2009年宝马3系轿车328年我xDrive的328).pdf
- 20092010 Annual Report MSWORD (20092010年度报告MSWORD).doc
- 3 Mechanical Properties 3 1 Tensile Strength(3机械性能3 1抗拉强度).pdf
- 3 PVC Stabilizers Carl Hanser Verlag(3 PVC稳定剂卡尔·汉斯).pdf
- 3 Screw Pump Type SEIM PCX Model Users (3螺杆泵型SEIM图形文件的用户模型).pdf
- 3,000 Lumens WXGA Short Throw LightStream (3000流明扔LightStream并且WXGA短).pdf
- 3. Card Counting DeepNet Tech(3所示。).pdf
- 3. ASME B16.9 Fittings High Pressure Valves (3所示。).pdf
- 3. COMPRESSED AIR SYSTEM EM EA(3所示。).pdf
- 3. ENERGY PERFORMANCE ASSESSMENT OF (3所示。).pdf
- 3. FRICTION LAWS SPRING 2009 University of (3所示。).pdf
- 3. Conic Sections Contents Memorial University (3所示。).pdf
文档评论(0)