Introduction to Programming. Prof. George Zolla Prof. Gary Porter (IS 2020). Programs. A program is a set of step-by-step instructions that directs the computer to do the tasks you want it to do and produce the results you want. Programming Languages.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Prof. George Zolla
Prof. Gary Porter (IS 2020)
Add 1 to Counter
Place 1 in Counter
Terminator. Shows the starting and ending points of the program. A terminator has flowlines in only one direction, either in (a stop node) or out (a start node).
Data Input or Output. Allows the user to inputdata and results to be displayed.
Processing. Indicates an operation performed by the computer, such as a variable
assignment or mathematical operation.
Decision. The diamond indicates a decision structure. A diamond always has two
flowlines out. One flowlineout is labeled the “yes” branch and the other is labeled the
Predefined Process. One statement denotes a group of previously defined statements.
For instance, “Calculate m!” indicates that the program executes the necessary commands
to compute m factorial.
Connector. Connectors avoid crossing flowlines, making the flowchart easier to read.
Connectors indicate where flowlines are connected. Connectors come in pairs, one with
a flowline in and the other with a flowline out.
Off-page connector. Even fairly small programs can have flowcharts that extend several
pages. The off-page connector indicates the continuation of the flowchart on another
page. Just like connectors, off-page connectors come in pairs.
Flowline. Flowlines connect the flowchart symbols and show the sequence of operations during the program execution.Common Flowchart Symbols
While More items do
tax=sum x 0.0725
Output sum, tax, total
Analyze the problem
Design the solution algorithm
Design the user interface
Write the code
Test and debug the program
Complete the documentation
001101 100000 001101 110001
00101 10001 10000
. . .
main proc pay
mov ax, dseg
mov ax, 0b00h
add ax, dx
mov a1, b1
mul b1, ax
mov b1, 04h
Program - detailed set of instructions for a computer
Programming Language - tool used to create a program; defined by semantics and syntax
Semantics- the meaning of words in a language
Syntax- rules for combining symbols of a language
Source Code (code) - program you write using a programming language
Interpreter- translates and executes source code statement by statement