Easy steps to programming!!!
Easy steps to programming!!!
Programs are sequence of step by step instructions to the computer. Programs, and the data values processed by programs, are called software.
PROGRAMMING LANGUAGES
*Assembly language
Machine Language
Executable by machines, almost incomprehensible to humans. Programming in machine language is very tedious and prone to errors.
Assembly Language
Mnemonics used for instruction codes and memory locations Not directly understandable by machine. They must be translated Easier for humans to use and still in use today.
Ex: ADD X, Y, Reg1
ADD Reg1, Z, Reg2 STORE Reg2 SUM.
*Analyze the problem
*Develop a solution*Code the solution*Test and debug
Documentation##Internal documentation##
Comments – Notes to the reader of the program
Identifiers – should represent the information they hold or the task they define.
##External documentation##
User’s manual
Test plan
Design document
Maintenance
Correcting new problems
Adding new features
Modifications due to change in requirements
Introduction to C++...
WHAT IS A PROGRAME?Programs are sequence of step by step instructions to the computer. Programs, and the data values processed by programs, are called software.
PROGRAMMING LANGUAGES
Low-Level Programming Languages
* Machine language*Assembly language
High-Level Programming Languages
Instructions look more like English and Math. Generally result in multiple low level commands, for a single high level statement.Uses syntax resembling combination of mathematical notation and English Easy for humans to understand. Not understandable by machines, must be translated using a compiler or an interpreter. Programming tools such as integrated programming environment with a debugger are available to aid in programming process.Machine Language
Executable by machines, almost incomprehensible to humans. Programming in machine language is very tedious and prone to errors.
Assembly Language
Mnemonics used for instruction codes and memory locations Not directly understandable by machine. They must be translated Easier for humans to use and still in use today.
Ex: ADD X, Y, Reg1
ADD Reg1, Z, Reg2 STORE Reg2 SUM.
Program Language Translation
Assemblers
Translate statement from assembly language to machine language. Generally use table look-up techniquesInterpreters
Translate and execute each high-level statement, one at a timeCompilers
Translate the entire high level language program, called the source code, to machine language and store the result. Machine language code produced by compilers is called object codeProblem Solving and Software Development
Development and Design*Analyze the problem
*Develop a solution*Code the solution*Test and debug
Documentation##Internal documentation##
Comments – Notes to the reader of the program
Identifiers – should represent the information they hold or the task they define.
##External documentation##
User’s manual
Test plan
Design document
Maintenance
Correcting new problems
Adding new features
Modifications due to change in requirements
Control Structures
move to page programming & look at bottom.
Comments
Post a Comment