2.2 - Programming Techniques

Beschreibung

Mindmap am 2.2 - Programming Techniques, erstellt von Sam Haynes am 01/02/2019.
Sam Haynes
Mindmap von Sam Haynes, aktualisiert more than 1 year ago
Sam Haynes
Erstellt von Sam Haynes vor fast 6 Jahre
18
0

Zusammenfassung der Ressource

2.2 - Programming Techniques
  1. Variables
    1. Should not contain spaces and they shouldn't start with a number.
      1. If the inputs come from the console, from a file or from elsewhere in a modular program.
        1. AKA parameters.
        2. Booleans
          1. And, or, not, larger, smaller, equal, not equal.
          2. String/characters
            1. Slicing, length, format.
            2. Modular division
              1. Finding a remainder.
                1. 5MOD2 would give 5.
                2. Integer division
                  1. 5DIV2 would give 2
                  2. Stores values whilst a program is running.
                    1. Values can change.
                    2. String Features
                      1. Slicing
                        1. LEFT("Monkey") gives "Monk"
                        2. Length
                          1. LEN("Monkey") gives 6
                          2. Change case
                            1. Monkey ---> MONKEY ---> monkey
                          3. Sequencing
                            1. Allows a programmer to solve complex tasks through a number of simple steps.
                              1. Benefits
                                1. Each line follows the next.
                                  1. Creates simple programs very quickly.
                                    1. Easy to follow for a small program.
                                      1. Fundamental principals of a program.
                                        1. Starts at the top, finishes at the bottom.
                                      2. Disadvantages
                                        1. Not at all efficient.
                                          1. Becomes very difficult to follow with large programs.
                                            1. Extremely hard to maintain.
                                          2. Selection
                                            1. Changes the flow of a program, depending on a set of decisions.
                                              1. Used for validation, calculation and making sense of a user's choices.
                                                1. Nested Selection
                                                  1. A statement within a statement.
                                                2. Constants
                                                  1. Store values whilst program is running.
                                                    1. Values remain the same.
                                                    2. Basic Programming Constructs
                                                      1. Sequence
                                                        1. Selection
                                                          1. Iteration
                                                          2. 2 dimensional array
                                                            1. Has rows and columns.
                                                              1. Each row/column/index holds data.
                                                              2. Features of a table
                                                                1. Fieldname
                                                                  1. Title of each column.
                                                                  2. Primary Key
                                                                    1. A unique number to identify an object.
                                                                    2. Record
                                                                      1. Each individual cell's data.
                                                                    3. Subroutines
                                                                      1. Can be repeated in different parts of code.
                                                                        1. Work can be split between programmers.
                                                                          1. Functions return a value.
                                                                            1. Procedures DO NOT return a value.
                                                                            Zusammenfassung anzeigen Zusammenfassung ausblenden

                                                                            ähnlicher Inhalt

                                                                            Gedächtnis
                                                                            Nicole Girard
                                                                            Modul 2C FernUni Hagen Entwicklungspsychologische Grundlagen und Vorstellung, Spiel & Phantasie
                                                                            Anni T-Pünktchen
                                                                            Analyse und Vergleich von Texten (Epik, Lyrik und Dramatik)
                                                                            lilith.m
                                                                            Klinische Psychologie-Grundlagen
                                                                            evasophie
                                                                            Projektmanagement
                                                                            zok42.com
                                                                            Business-Englisch - Präsentieren
                                                                            Antonia C
                                                                            U6 Bildbearbeitung
                                                                            Lena A.
                                                                            Euro-FH // Zusammenfassung PEPS1
                                                                            Robert Paul
                                                                            Vetie - MiBi 2016
                                                                            Fioras Hu
                                                                            Vetie Tierseuchen 2019 - Anzeigepflichtig/Meldepflichtig
                                                                            Peter Christian Ponn