(Exploring CS) Lecture 1 - Notes
(Exploring CS) Lecture 1 - Notes
-Lecture 1-
Machine languages
- The lowest level of computer languages (1s and 0s)
- Programs in machine language can control directly to the hardware
- Consist of 2 parts:
o Instruction part (opcode) tells the computer the operation to be
performed
o Address part specifies which memory address to be used
Assembly languages
- Perform the same tasks as machine languages, but use symbolic
names for opcodes and operands instead of 1s and 0s
- An assembly language program must be translated into a machine
language program before it can be executed (Assembler)
Structured Programming
- 1960s, many large software encountered severe difficulties
- Software schedules were late, costs exceeded budgets, products were
unreliable
- Software development was more complex than expected
- Research activity -> Structured Programming
- Discipline approach, clearer, easier to test and debug, easier to
modify
- Pascal (Niklaus Wirth) in 1971
Algorithms
- You can describe an algorithm using a flowchart or pseudocode
- Who cares about flowcharts anyways, and pseudocode is just English