programmingCompleteAssignment
programmingCompleteAssignment
A computer is an electronic device that receives data, processes it using various computations,
and generates results. These functions are accomplished by giving the computer a program
consisting of a sequence of statements called a program segment. A computer system
consists of multiple objects with a process. The objects of a computer system include the user,
hardware (input devices, CPU, output devices), and software. For example, an educational
system involves teachers and students as objects, with the teaching process.
To instruct a computer on what to do, a programmer writes a program and creates data. The
program and data are stored on disk, and the programmer then commands the computer to
execute the program on the specific data. The Control Unit (CU) copies the program and data
into memory, keeping track of the current instruction to perform. This process can be compared
to preparing tea, where adding ingredients, boiling, and getting tea is analogous to input,
processing, and output, respectively.
KEY TERMINOLOGIES
- Compiler: A program that converts high-level language programs into machine language.
- Assembler: A program that converts assembly level language programs into machine language.
- Interpreter: A program that translates and executes high-level language statements into
machine language instructions.
COMPUTER LANGUAGES
Programming languages are categorized into five generations based on their performance,
reliability, and robustness. These generations include:
2. 2GL: Assembly languages that use symbolic names for opcodes and operands.
High-level languages provide abstraction from hardware, making programming easier. Some
characteristics include readability, portability, abstraction, memory management, and rich
libraries. Examples include Python, Java, C++, and JavaScript. Low-level languages provide
direct hardware control and efficiency but have a steeper learning curve. Examples include
Assembly Language and Machine Code.
When selecting a programming language, consider factors such as project requirements, team
expertise, ecosystem and libraries, tooling and development environment, performance and
efficiency, portability and compatibility, scalability and maintenance, security, and cost and
resources.
An IDE is a software application that provides facilities for software development, including a
source code editor, build tools, and a debugger. IDEs enhance productivity with features like
version control, syntax highlighting, code completion, and extensions.
Data types classify data, define variable values, and determine operations and storage. Primitive
data types are independent, composite data types combine primitive types, and user-defined
data types are based on existing types. Common primitive data types include Integer, Floating
Point, Character, Boolean, Date, Time, and Datetime.
Text editors are used to write, change, and save program code in source code files. Examples
include Notepad++.
COMPILING PROGRAMS
Compilers translate high-level language source code into machine language object code.
Compilation converts the entire program into an executable machine code file. Examples of
compilers include Turbo C, Borland C, and GC.