Programming Fundamentals
Programming Fundamentals
Software
Computer programs that control the
operation of the computer / computer
instructions or data. Anything that can
be stored electronically is software. The
storage devices and display devices are
hardware.
PROGRAMMING FUNDAMENTALS
- HAZAEL GMEZ ENCINAS
PROGRAMMING FUNDAMENTALS - HAZAEL GMEZ ENCINAS
1.1- SYSTEM AND APPLICATION SOFTWARE
Users
Hardware
Proprietary
Designed to solve a unique and specific problem
In-house
Development of application software using the companys
resources
Contract
Developed for a particular company
Off-the-shelf
An existing software program that can be used without
considerable changes expected
Proprietary Off-the-shelf
software software
In-house Contract
customized customization
Proceso arreglarLampara
Si LamparaConectada == True Entonces
Si BulboQuemado ==True Entonces
ReemplazarBulbo();
Sino
RepararLampara();
FinSi
Sino
ConectarLampara();
FinSi
FinProceso
Start
Task: add two numbers
Get 2 numbers Start
Get two numbers
Add them
Add them Print the answer
End
Print answer
End
START/END
INPUT/OUTPUT
PROCESS
DECISION
START/END
Used at the beginning
and end of each
flowchart.
INPUT/OUTPUT
Shows when
information/data comes
into a program or is
printed out.
PROCESS
Used to show
calculations, storing of
data in variables, and
other processes that
take place within a
program.
Pseudocode
Get yr
Start
Get year born Calc age
Calculate age
Print age Print age
If age > 50 print OLD
End Y
OLD Age>50?
N
End
Play Video
Machine Language
1st generation programming language
Considered a low-level language because it involves basic
coding using the binary symbols 1 and 0
Assembly Language
2nd generation language
Replaced binary digits with mnemonics (e.g., ADD)
programmers could more easily understand
CATEGORIES OF PROGRAMMING LANGUAGES
LOOPS
A loop is a repetition of all or part of the commands in a program.
A loop often has a counter (a variable) and continues to repeat a
specified number of times.
A loop may also continue until a certain condition is met (e.g., until the
end of a file or until a number reaches a set limit)
a:
echo 'Bar';
?>
Imperative programming
List<int> results = new List<int>();
foreach(var num in collection)
{
if (num % 2 != 0)
results.Add(num);
}
Non-Procedural
SQL, Visual Basic, etc etc.