Mapa mental
Programming Basics
Contenido del mapa
Programming Basics
Design Methodology
- Steps
- 1. Define the output and data flows
- -Create an output definition with the headers Field, Type and Description. -Utilise program development systems such as Visual Basic or try Rapid Application Development
- 2. Develop the logic to get to that output
- 3. Write the program
- Using flowcharts or pseudocode
- Top-down design
- 1. Define the output and data flows
- Steps
JavaScript
- Displaying output
- document.write
- prompt
- alert
- Math operators
- ( ) *, /, %(modulus) +, -
- Inputting variables
- The usage of var to precede the name of the variable is optional
- Array of characters & numbers
- String methods
- Make all capital or lowercase
- eg. newtown1 = hometown.toLowerCase(); eg. newtown2 = hometown.toUpperCase();
- Replacing parts
- eg. hometown = hometown.replace("Salt", "Blue");
- Make all capital or lowercase
- Numeric Functions
- parseInt(), parseFloat()
- Math functions
- Math.(floor,round,abs,atn,sin,cos,tan,exp,log)(numeric value)
- Decision statement
- if, else, else if
- Relational operators
- < , >, ==, >=, <=, != (not equal to)
- Looping
- for, while, do...while (the only difference between while and do...while is the placement of the condition, the latter makes sure the program runs once before the condition is tested.
- Creating functions and storing them together
- -Storing functions in a js file -Calling them from the same folder as html file using to provide file path
- Displaying output
Structured Programming
- The 3 Constructs
- Sequence
- Decision
- Looping
- Program Testing
- Desk checking
- Beta testing
- Parallel Testing
- The 3 Constructs
Información
- Descripción
- Mapa Mental sobre Programming Basics, creado por ryanfong17 el 03/05/2014.
- Creado por
- ryanfong17
- Visitas
- 16
- Valoración