2.2 Programming

Description

Mind Map on 2.2 Programming, created by Tom Deza on 21/01/2019.
Tom Deza
Mind Map by Tom Deza, updated more than 1 year ago
Tom Deza
Created by Tom Deza over 5 years ago
11
0

Resource summary

2.2 Programming
  1. KEY WORD
    1. Input, Output, Assignment, Psuedocode, Flowchart, Identifier, Variable, Constant, Concatenation, Memory Location, Parameters
    2. INPUT
      1. Inputs come from the console, from a file, or from elsewhere in a modular program – then they are known as 'parameters'
      2. OPERATORS
        1. Numbers: addition, subtraction, division, modular division (division with a remainder), integer division, multiplication, to-the-power-of, negation Boolean: AND, OR, NOT, larger, smaller, equal, not equal Strings/characters: slicing, length, format
          1. INTEGERS AND REALS
            1. Addition total = amount + VAT Subtraction e.g. age = cur_year – y_birth Division divide = 5 / 2 Modular division myRemainder = 5 MOD 2 (find a remainder) Integer division intDivision = 5 DVI 2 Multiplication totalCost = cost * 0.2 Exponential area = 3.1 * radius^2
            2. STRING OPERATIONS
              1. String Features Slicing e.g. LEFT(“monkey”,4) is “monk” Length e.g. LEN(“monkey”) [=6] Change case e.g. “monkey””MONKEY””Monkey” Formatting Features ASCII and Unicode e.g. ASCII(“c”) [=99] Escape characters e.g. ‘it\’s me’ [it’s me] White space: CR NewLine, TAB 4 or 5 spaces
              2. BOOLEAN OPERATORS
                1. AND - two conditions must be true for the statement to be true OR - at least one condition must be true for the statement to be true NOT – inverts the result, e.g. NOT(A and B) will only be false when both A and B are true
                2. WHAT, OPERATORS ARE USED WHERE?
                  1. Numbers: addition, subtraction, division, modular division (division with a remainder), integer division, multiplication, to-the-power-of, negation Boolean: AND, OR, NOT, larger, smaller, equal, not equal Strings/characters: slicing, length, format
                    1. EOL
                      1. EOL means end of line
                  2. MORE KEY WORDS
                    1. Sequence, algorithm, Instructions, Efficiency, Structured
                    2. BENEFITS OF SEQUENCING
                      1. Each line follows the next Create simple programs very quickly Easy to follow for a small program Fundamental principal of a program
                      2. DISADVANTAGES OF SEQUENCING
                        1. Not at all efficient Becomes very difficult to follow with large programs Extremely hard to maintain
                        2. KEY WORDS
                          1. IF, ELSIF, ELSE, SELECTION CASE, Boolean, nested, selection, condition, criteria, true, false
                          2. NESTED SELECTION
                            1. Sometimes, we can only evaluate a condition if some pre condition is met. We would need two selection statements on inside the other.
                            2. BIG PICTURE
                              1. Computers are good at performing
                              2. EOF
                                1. EOF means end of file
                                2. SQL
                                  1. SELECT(fields) . FROM(files) . WHERE
                                  2. BOOLEAN
                                    1. Boolean can only have two values, example TRUE or FALSE...
                                    2. FILE MODE
                                      1. A file can open in either READ or WRITE modes.
                                      Show full summary Hide full summary

                                      Similar

                                      OCR Chemistry - Atoms, Bonds and Groups (Definitions)
                                      GwynsM
                                      Organic Chemistry
                                      Ella Wolf
                                      GCSE Maths Symbols, Equations & Formulae
                                      Andrea Leyden
                                      Chemical Symbols
                                      Keera
                                      HISTOGRAMS
                                      Elliot O'Leary
                                      IB Chem Flashcards
                                      j. stu
                                      GCSE AQA Biology 2 Respiration & Exercise
                                      Lilac Potato
                                      Maths GCSE - What to revise!
                                      livvy_hurrell
                                      Poetry revision quiz
                                      Sarah Holmes
                                      GCSE AQA Chemistry 2 Salts & Electrolysis
                                      Lilac Potato
                                      Salesforce Admin 201 Exam Chunk 3 (66-90)
                                      Brianne Wright