Karteikarten
Gr 11 computer science
Karten in diesem Stapel (43)
- 1Variable DeclarationPart of the 3 amigos
eg: double price;
+ initialization
double price=0; - 2variablethe name of the variable being used
double PRICE; - 3data typepart of a variable declaration, can be in a parameter list
int, double, float, String, boolean, color, char - 4embedded commentcommenting during the program to explain what is currently happening.
- 5user promptpart 2 of 3 amigos
c.print("Type in a price before tax: "); - 6assignment operatorused when initializing, incrementing and decrementing a variable.
- 7operator<,>,==
- 8operandswhat is on either side of an operator,
think of an
-if () - 9concatenationto join together as strings
- 10escape character\
used to separate lines ("\n\n"); - 11Boolean conditonusing and or, as well as <,>,==
eg N is an even number
N%2==0 - 12else clauseif all other statements fail, the else clause will happen
- 13infinite loopwhile(true)
{
}
everything will repeat as long as true stays true - 14while loop (COUNTER CONTROLLED)while(count<10)
within the while loop there is an incremented counter (count++;) - 15while loop (USER CONTROLLED)while(true)
using the 3 amigos, ask the user for something, as long as their input sticks with the requirements the loop will repeat.
To exit there will be a direct way. - 16counteran integer variable used to count something
- 17initializationgiving a variable a starting value.
Normally 0 - 18loop indexi
- 19increment/decrementto increase or decrease a variable by a certain amount
- 20nested loopa loop within a loop
- 21method definitionthe entire subprogram
- 22method callthe portion of subprogram within setup
- 23parameter list( )
- 24argument/actual parameterthe parameter within the method call
- 25formal parameterthe parameter used in the method definition
- 26method overloadingthe same subprogram but with different parameters
- 27parameter data typethe data type of the parameter
- 28return typeFUNCTION: instead of void for a procedure, the data type that is finally outputted
- 29voidessentially nothing, but specifically PROCEDURE CUE
- 30scopethe area where a variable can be used (Depends on where it is declared)
- 31local/globallocal-only in the certain area
global- used anywhere - 32boolean functioncan be used if specifically looking for certain things.
eg x has to be between here and here && y needs to be between here and here - 33IDEintegrated development environment,
where you write your code. - 34algorithmthe code itself
- 35debug windowwhere the errors show up
- 36debuggingfixing errors in code
- 37tracingrunning through a prgm as if you were the computer
- 38random number generatorhow many random numbers you want and what number you want to start at
- 39hexadecimal1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,10,11,12
- 40arduinoa microcontroller board with a programming language
- 41arraya list
- 42array element[ ] the number of items in an array
- 43array index[0] a specific number on the list
Informationen
- Beschreibung
- Grade 12 Computer Studies Karteikarten am Gr 11 computer science, erstellt von Julia Garant am 21/01/2018.
- Erstellt von
- Julia Garant · Jan 2018
- Aktualisiert
- 21 Jan 2018
- Aufrufe
- 6
- Bewertung