Computer and Computer Programming Basics
Two terms often used when talking about Computers are Hardware and Software. Hardware is the equipment or machinery associated with a computer. The subject of this course is software. Software refers to the data and instructions used to generate information.
Information Processing Cycle
Storage
Primary Storage – Memory / RAM
Secondary Storage - Mass Storage Device
Process
Processor / Central Processing Unit
Output / Information is output in a useable form
Software or Programs can be divide into two categories. System software and Application software. Windows is an example of system software. Word is an example of application software. All software is written by programmers.
Programming in Information Systems
In-house or customized development
Systems Development
Implementation includes (among other things)
Programming- Programmers write programs
Testing and debugging
What a Computer Can Do
Accept data via input device
Store Data in Memory
Perform Arithmetic operations (add, subtract, multiply, divide) on data
Compare data to other data
Determine if one value is less than, greater than, or equal to another value
Output Results via output device
Programs and Programming
Logic /
Algorithm - Step-by-step
instructions
Structured Programming
Programming Languages - Programmers write
programs using a programming language best suited for the application they are
creating.
Machine Language
- the only language the computer really understands. No one really write in
machine language. Instead an assembler, compiler, or interpreter converts the
instructions written by the programmer, (the source code) into machine language.
Low-Level Language - closest to machine
language
High-Level Languages - closer to English
C++ class



{
public static void main (String[] args){
int data;int sum = 0;
do
{ data = MyInput.readInt();
sum += data;
}
while (data != 0);System.out.println("The sum is "+sum);
}
}

Fourth-Generation Language - Intended for programmer as well as non-programmer use.

FOCUS

Translating Source Code (instructions written in a computer language) to Machine Code
Assembler Assembly languages are assembled.
Checks all instructions in a high-level program for syntax errors, if any error is found a list of detected errors is produced. If no errors are found the entire program is translated into machine code and stored in machine language ready for execution.
Checks instructions in a high-level program for syntax errors one line at a time. If no error is found the instruction is translated into machine code then executed and the interpreter moves on to the next line in sequence.
Procedural Language
Event-Driven Programming Language