Transition to Code Upsorn Praphamontripong CS 1110

Slides:



Advertisements
Similar presentations
Algorithms 10 IST – Topic 6.
Advertisements

CS101: Introduction to Computer programming
More on Algorithms and Problem Solving
CS107 Introduction to Computer Science Lecture 3, 4 An Introduction to Algorithms: Loops.
CS107: Introduction to Computer Science Lecture 2 Jan 29th.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Control Statements I.
Programming TBE 540 Farah Fisher. Objectives After viewing this presentation, the learner will be able to… Given a task, create pseudocode Given pseudocode,
 Control structures  Algorithm & flowchart  If statements  While statements.
Chapter 2: Algorithm Discovery and Design
Unit 171 Algorithms and Problem Solving  Introduction  Algorithm Design  Algorithm Properties  Algorithm Control Flow  Examples  Comparing Algorithms.
COMPE 111 Introduction to Computer Engineering Programming in Python Atılım University
Flow of Control. 2 Control Structures Control structure: An instruction that determines the order in which other instructions in a program are executed.
Invitation to Computer Science, Java Version, Second Edition.
Introduction to Computational Linguistics Programming I.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Structural Program Development: If, If-Else Outline.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
ㅎㅎ logical operator if if else switch while do while for Third step for Learning C++ Programming Repetition Control Structures.
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
Pseudocode Simple Program Design Third Edition A Step-by-Step Approach 2.
Branches and Program Design
Dale Roberts 1 Program Control - Algorithms Department of Computer and Information Science, School of Science, IUPUI CSCI N305.
Review, Pseudocode, Flow Charting, and Storyboarding.
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
How to Program? -- Part 1 Part 1: Problem Solving –Analyze a problem –Decide what steps need to be taken to solve it. –Take into consideration any special.
Structured Programming The Basics. Control structures They control the order of execution What order statements will be done in, or whether they will.
1 Overview of Programming Principles of Computers.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Programming. In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Control Structures WHILE Statement Looping. S E Q C E N U E REPITITION …a step or sequence of steps that are repeated until some condition is satisfied.
Pseudocode. Algorithm A procedure for solving a problem in terms of the actions to be executed and the order in which those actions are to be executed.
1 Structured Programming Arab Academy for Science and Technology CC112 Dr. Sherif Mohamed Tawfik The Course.
Loops causes program to execute the certain block of code repeatedly until some conditions are satisfied. Suppose you want to execute some code/s 10 times.
Input and Output Upsorn Praphamontripong CS 1110
Algorithm and Ambiguity
Pseudocode Upsorn Praphamontripong CS 1110 Introduction to Programming
Lecturer CS & IT Department UOS MBDIN
Programming Fundamentals
Algorithm and Ambiguity
Transition to Code Upsorn Praphamontripong CS 1111
Chapter 5 Structures.
Control Structures (Structured Programming) for controlling the procedural aspects of programming CS1110 – Kaminski.
Nate Brunelle Today: PyCharm
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Global Challenge Flashing Wheels Lesson 2.
Visual Basic – Decision Statements
Algorithm and Ambiguity
Global Challenge Flashing Wheels Lesson 2.
Nate Brunelle Today: Turtles
Understanding Problems and how to Solve them by using Computers
Computer Science Core Concepts
CS 1111 Introduction to Programming Spring 2019
Data and Flowcharts Session
ICT Programming Lesson 1:
ICT Gaming Lesson 2.
Flow of Control.
Global Challenge Flashing Wheels Lesson 2.
Introduction to Computer Science
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Control Structures (Structured Programming) for controlling the procedural aspects of programming CS1110 – Kaminski.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
The structure of programming
Global Challenge Flashing Wheels Lesson 2.
Thinking procedurally
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Structural Program Development: If, If-Else
Presentation transcript:

Transition to Code Upsorn Praphamontripong CS 1110 Introduction to Programming Spring 2017

review Pseudocode Pseudocode is one of the methods that can be used to represent / describe an algorithm (usually in English) Not use specific programming language syntax Can be easily translated into a high-level programming language Usually include terms specifying a sequence of actions the a program will take CS 1110-002

Control Structures Sequence Condition ( if ) Repetition ( loop ) review Control Structures Sequence A series of statements that execute one after another Condition ( if ) To decide which of the two or more different statements to execute depending on a certain condition Repetition ( loop ) To repeat statements while certain conditions are true Subprogram A small part of another program solving a certain problem CS 1110-002

Control Structures Sequence A series of statements that execute one after another statement1 statement2 statement3 statement4 … 6 steps walk, walk, walk, walk, walk, walk, turn, sit CS 1110-002

Control Structures Condition ( if ) To decide which of the two or more different statements to execute depending on a certain condition If (condition): statement1 else: statement2 condition statement 1 statement 2 true false …. CS 1110-002

Control Structures Repetition ( loop ) To repeat statements while certain conditions are true ? steps Repeat until you are in front of the chair, turn, sit while (condition): statement1 statement2 statement3 … condition statement(s) true false …. CS 1110-002

Python Interpreted programming language Python interpreter code (.py) Executable version (.pyc) (Python 3.6) Interpret at runtime CS 1110-002

PyCharm Integrated Development Environment Editor window (“editor”) Project management window (“project view”) Execution window (“console”) CS 1110-002