Lesson 1 - Creating Java Programs Flashcards
Computer program
A set of instructions that you write to tell a computer what to do
Hardware vs Software
Hardware is computer equipment (keyboard or monitor)
Software is a computer program
Application software
Program that performs a task for the user
System Software
Program hat manages the computer itself
Logic
Determines the exact order of instructions to produce desired results
Machine language/code
Is the most basic set of instructions that a computer can execute
Low level programming language
A programming language that corresponds closely to a computers circuitry
High-level programming language
Allow you to use vocabulary of terms instead of sequences of binary to perform a task
Syntax
Rules about how language elements combine to produce usable commands
Program statements/Commands
Statements that carry out the tasks they want the program to perform
Compiler
Translates an entire program before executing tasks
Interpreter
Translation one program statement at a time, executing a statement as soon as it is translated
Syntax error
Invalid program statement
Text editor usually catches syntax errors
Bugs
Flaws in a program
Debugging
The process of removing flaws or errors from a program
Logic error
Bug that allows a program to run, but does not produce the desired result
Not a syntax error
Can only be fixed by reviewing the program
Also known as semantic errors
Procedural programming
Style of programming in which operations are executed one after another in a sequence
Create names that can hold values
Variables
Named computer memory locations
A name that can be assigned with a value
Ex.
rateOfPay
(It may contain different values based on the employee)
Procedures
Logical units that are groups of individual operations used in a computer program
Synonym: modules, methods, functions, subroutines
Object oriented programming
- creating classes, which are blueprints for objects
- creating objects, which are specific instances of this classes
- creating applications that manipulate or use those objects
Extension of procedural programming
Computer simulations
Programs (typically object-oriented) that try to mimic real world activities so that their processes can be improved