1: Chapter 4 Flashcards
Cumulative algorithm
An operation in which an overall value is computed incrementally, often using a loop.
Roundoff error
A numerical error that occurs because floating-point numbers are stored as approximations rather than as exact values.
Text processing
Editing and formatting strings of text.
Precondition
A condition that must be true before a method executes in order to guarantee that the method can perform its task.
Postcondition
A condition that the method guarantees will be true after it finishes executing, as long as the preconditions were true before the method was called.
Cohesion
A desirable quality in which the responsibilities of a method or process are closely related to each other.
Coupling
An undesirable state in which two methods or processes rigidly depend on each other.
Chaining
An undesirable design in which a “chain” of several methods call each other without returning the overall flow of control to main.