- 12
- 0
- 约1.59万字
- 约 37页
- 2018-04-10 发布于河南
- 举报
CE2409 Computer Applications in Civil Engineering L3A.pdf
Logical Expressions
Sequence StructureSequence Structure Selection Structure
RRepetitititive St Structture
AlgorithmAlgorithm??StructureStructure Structured Alggorithm An algorithm described consistently based on a set of standard forms, or structures Structured ProgramStructured Program A program written based on structured algorithmsalgorithms
GeneralGeneral??StructuresStructures Steps in algorithms can be divided into 3 general structures: into 3 general structures: Three Structures Selection or Repeating Sequential Decision or Looping
SequenceSequence??StructureStructure Series of steps listed one after another that are pperformed seqquentiallyy: Sequential Computation Input Output
SequenceSequence??StructureStructure?? Cont’d Cont’d ComputationsComputations AverageAverage total/counttotal/count AverageAverageAverageAverage total/counttotal/counttotal/counttotal/count
SequenceSequence??StructureStructure?? Cont’d Cont’d InputInput Read temperature, humidityRead temperature, humidity Read temRead tempppperature, humiditerature, humidityyyy
SequenceSequence??StructureStructure?? Cont’d Cont’d OutputOutput Print “Ratio “, RatioPrint “Ratio “, Ratio Print “Ratio “Print “Ratio “,,,, Ratio Ratio
Selection/DecisionSelection/Decision??StructureStructure Allows adding of branches to execution flow Selection/Decision Block IF/Block IF-ELSE 2-Way Branch CASE Multiple Branches BlockBlock IFIF--ELSEIFELSEIF Multiple Branches
LogicalLogical????BlockBlock??IFIF??SyntaxSyntax IFIF conditioncondition executableexecutable??statementstatement IFIF conditioncondition THENTHEN statementstatementstatementstatement??1111 statementstatement??22 …..….. statementstatement??nn ENDEND??IFIF
ConditionCondition
? Used in selection repetition structures to control execution flowstructures to control execution flow
?An expression that evaluates to either
?An expression that evaluates to either TRUE or FALSE values
? Can be in 2 forms: ?Logical Expression ?Logical E
您可能关注的文档
- An Evaluation of Agreement and Conflict Among Computer Forensics Experts.pdf
- An in depth look at deleveragings by Ray Dali.pdf
- An Introduction to Chinese Culture.doc
- An Optimal Control Method for Photovoltaic.pdf
- AN-4134SC【采用FPS的隔离式正激AC-DC开关电源设计指南】.pdf
- AN742_smith_chart.pdf
- Analysis of coal tar derived from pyrolysis at different atmospheres.pdf
- Analysis of English Compound Nouns.doc
- Analysis of forces on coil ends.pdf
- Analysis of hospital technical efficiency in China.pdf
- 统编版2025年春季新版七年级下册历史 第21课 明清时期的科技与文化 教案.docx
- 雅安雨城法院书记员招聘考试真题库2025.docx
- 2026届安徽合肥市高考一模高考语文试卷试题(含答案详解).pdf
- 【专题研究】国内外城市更新研究的最新进展.pdf
- 【专题研究】老旧城区改造居民满意度影响因素研究——以遂宁市老旧城区改造为例.pdf
- 【专题研究】关于旧城空间改造理论与创意设计案例的几点思考.pdf
- 西藏拉萨市高三下学期期末物理备考重点详解.docx
- 泾县法院书记员招聘笔试真题2025.pdf
- 2026年春【苏教版】-六年级数学下册-面积的变化.pptx
- 2026年春【苏教版】-六年级数学下册-7.pptx
最近下载
- A Guide to Modern Econometrics 2nd Ed Marno Verbeek 习题答案.pdf VIP
- 范本道路货物运输企业车辆新增、变更、补证、注销申请表.doc VIP
- 《信息技术大数据数据资产价值评估》.pptx VIP
- 肥料级硫酸铵的作用与用途.docx VIP
- 辽西~辽中500千伏断面加强工程.pdf
- 关于几乎差集.pdf VIP
- 新零售企业数据资产评估.pptx VIP
- 变质岩 第5讲 变质岩的结构与构造.ppt VIP
- 2025年四川省什邡市事业单位公开招聘考试职业能力倾向测验(D类)(中小学教师类)真题完整版.docx VIP
- TCVIA130-2023 视觉疲劳测试与评价方法 第 3 部分 电子纸可读性测试及评价方法.pdf VIP
原创力文档

文档评论(0)