CPSC 1100 Lecture Notes - Lecture 1: Flowchart, Computer Program, Parallelogram
Document Summary
An algorithm is the blueprint for a computer program/software. Visual logic is a visual tool combining graphics of flowcharts and pseudo code like syntax. An output statement displays information (in a window/console/file) An input statement accepts data from the user and stores that data into a variable. A variable is a storage location in computer memory that can be accessed and changed in the program. A variable has a name which does not change and an associated data value. Name is the name of a variable and its data value is the string dave. The name of a variable is also called an identifier. An identifier cannot have any spaces in it, only letters, numbers, and underscore. Input statements are used to get data into variables. In visual logic, the input flowchart element is a parallelogram with the keyword input following by the variable name.