Lecture 4 -- Computation
In this lecture:
• Computation
• Iteration
• Functions
• UML activity diagrams
• vectors
From Bjarne Stroustrup’s course:
www.stroustrup.com/Programming
, Computation
Code, often messy,
(input) data often a lot of code (output) data
data
• Input: from keyboard, files, other input devices, other
programs, other parts of a program
• Computation: what our program will do with the input to
produce the output.
• Output: to screen, files, other output devices, other programs,
other parts of a program
Stroustrup/Programming 2
In this lecture:
• Computation
• Iteration
• Functions
• UML activity diagrams
• vectors
From Bjarne Stroustrup’s course:
www.stroustrup.com/Programming
, Computation
Code, often messy,
(input) data often a lot of code (output) data
data
• Input: from keyboard, files, other input devices, other
programs, other parts of a program
• Computation: what our program will do with the input to
produce the output.
• Output: to screen, files, other output devices, other programs,
other parts of a program
Stroustrup/Programming 2