Sequencing: The Most Simple Type of Program Uses Sequencing, A Set of Instructions Carried Out One After Another
The document discusses three programming concepts: sequencing, which involves carrying out instructions one after another; flowcharts, which are used to plan programs and include shapes to represent start/end points, processes, inputs/outputs, and decisions; and strings, which are collections of text characters that are indicated with quote marks in code. It also includes a flowchart example and matching Python code to demonstrate sequencing.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
44 views
Sequencing: The Most Simple Type of Program Uses Sequencing, A Set of Instructions Carried Out One After Another
The document discusses three programming concepts: sequencing, which involves carrying out instructions one after another; flowcharts, which are used to plan programs and include shapes to represent start/end points, processes, inputs/outputs, and decisions; and strings, which are collections of text characters that are indicated with quote marks in code. It also includes a flowchart example and matching Python code to demonstrate sequencing.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5
Sequencing
The most simple type of program uses sequencing, a set of
instructions carried out one after another. Start End Display Computer Display Science Display Rocks Flowcharts Flowcharts are used to plan programs before they are created.
The start or end of the program. There may be more than one way to complete the algorithm and there may be more than one end box.
A process, that is doing something for example calculating something.
An input or output, for example: Input num1
A decision, YES or NO, or a choice of paths, for example: Is it a weekday?
A subroutine or self-contained program that can be used as required.
When a flowchart will not fit onto a single page we use this shape to show how the sections of the flowchart connect together. Strings In programming we usually call normal text a string. A string is a collection of alphabetic and/or numeric characters. We tell the computer something is a string by putting quote marks around it. Whats your name? Sequencing Start End Match the Python code to the correct part of the flowchart. Display Computer Display Science Display Rocks Python Open the Python IDLE. Start a new program by clicking on File > New File. Enter the code from the previous slide. Save your program as sequencing.py and press F5 to run it.