• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/49

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

49 Cards in this Set

  • Front
  • Back
5 component of a computer
Processor-CPU
Input devices
output devices
main memory
secondary memory
Hardware
acutal physical machines
pcs
work stations
mainframes
software
operating systems
programs
Bit
a binary digit of 0 or 1
byte
8 bits of information
compiler
converts code to binary digits
High level language
C++ designed to be easily written and read by humans
machine language
0's and 1's
Algorithm
A sequence of precise instructions which leads to a solution
Software Life Cycle
Problem definition
Design of software
Implementation(coding)
Testing
Maintenence and evolution of the system
obsolete
Truth tables
AND
both must be true
Truth tables
OR
1 must be true
Truth Tables
NOT
Not true==False
Not False== true
nested If-Else
statements within if-else
multi-way if else
more than 2 branches
switch statement
another way to multi brach
includes case statements
top down design
breaking everything into smaller and smaller subtasks/subprograms
Predefined function
sqrt(9.0)==3
<cmath>
predefined functio
pow(2.0,3.0)==8
<cmath>
predefined function
fabs(-7.5)=7.5
<cmath>
predefined function
ceil(3.2)==4.0
<cmath>
predefined function
floor(3.9)==3.0
<cmath>
predefined function
abs(-7)
<cstdlib>
predefined fuction
labs(-70,000)==70,000
<cstdlib>
Function
nake of function to avoid using predefined
call by value
substitutes variables for values
program error
syntax
violations in language (ommiting a semicolon)
runtime error
error detected when program is run(division by zero)
logics error
putting a + when meaning a *
indentifiers
used as names for variables in C++ program
declarations
telling compiler what kind of data will be stored in variable
constant
number_of_bars==37
unintailized
variable that has not be given a value
int
stored as exact value
double
stored with 14 or more digits of accuracy
char
characters
long
like int for larger integers
float
like double for larger integers
bool
used in looping statements(T of F values) like branching
!=
not equal to
&&
both statements are true
!(x<y)
x is not greater than y
||
or operator
%
modulo remainder operator
//
comments
blocks
blocks are enclosed by braces variables declared are local to the block
local variables
variables declared in the main part of a program
global named constant
naming a constant at the beginning of a program accessable to all function definitions
function overloading
when giving 2 or more functions the same name extra care must used