Algorithm
Pseudo-code
Program development cycle
Source code, object code, executable code
Libraries
Pseudo-code - a set of instructions described in natural language but in a more formal way
read the name to be searched; store it in target_name
while (there are name in the list) do
read a name
if ( name = target_name)
print the corresponding phone number
return
end_while
print "name not found"
return
Example:
Scrambled eggs ( Input: 2 eggs, 50 mg. of oil. Output: hypercaloric dish called 'scrambled eggs') :
Take 2 eggs
Break shells and put their content in a pan containing 50mg of oil
Stir with a fork while cooking for 5 minutes
source code -> compiler -> assembler -> assembler -> object code -> linker (libraries) -> executable
Define the program objectives (specifications)
Design the program (design)
Write the code (implementation or coding)
Compile
Run
Test and debug (testing)
Maintain and modify (maintenance)
Please pay attention to:
Review questions
Programming exercises