Coral uses psudeo-code to help demonstrate real processes that occur in other languages.
Their flowchart shapes identify specific types of processes
Ovals = start/end , parallelagrams = input/output statements, rectangles = processes
, Common Coral Code for Lesson 1:
Integer == int refers to variables that have number values
Variables are assigned words that represent something that is occurring in code. (wage &
salary)
Get next input ==Combines Get and Input function -> user puts in a number and that
number is then equal to the variable in the code. In this case wage
Put “ “ to output is another way of Print function in python where words, variables, or
integers are typed onto the screen
Example #1: Put "Hello World!" to output
Example #2: Put " NO PARKING\n" to output
Put "1:00 - 5:00 a.m." to output (example of white space)
// -> Is used for comments (Commonly found in C++, Java, JavaScript, and PHP)
**indentation matters**
White space is important for output, but for coding, it has more to do with making it easier
to read for any person reading the code
A single 0 or 1 is called a bit
Eight bits, like 11000101, are called a byte
American Standard Code for Information Interchange (ASCII) uses 7 bits per code, and has
codes for 128 characters
, Chapter 1 Introduction summary
This chapter's key points included:
• A program consists of instructions (aka statements) that execute one at a time, to
get input, process data, and put output.
• A program uses variables to hold data, which may change ("vary").
• A flowchart depicts a program graphically, with a node for each statement.
• A program can output a variable's value, or a string literal consisting of characters
(including a newline character).
• A program can contain comments, which are for humans only and ignored when the
program runs.
• Most whitespace (regular spaces or newlines) is ignored by a program, but good
practice uses whitespace in a consistent way.
• The information age is quite new in human history. Changes are rapid.
• Computers surround us and computer numbers and usage continue to grow.
• Inside a computer, all data (characters, numbers, and more) is represented as bits:
0's and 1's.
• Programming is largely about problem solving, namely creating a methodical
solution to a given task.
• Careers in computing are numerous, highly-rated, and growing. Non-computing
jobs may benefit from programming.
• Pseudocode is an informal textual representation of a program intended for easy
human understanding.