You put $10,000 into a bank account that earns 5 percent year.
How many years does it take for the account balance to be doubled?
- Start with a table
- Repeat while the balance is less than $20,000
- Add a new row to the table.
- In column 1 of the new row, put one more than the preceding year's value.
- In column 2 of the new row, place the value of the preceeding balance, multiplied by 1.05.
- Report the last number in the year column as the number of years required to double the investment.
. . . . . . . . . ( end of section Algorithm from Section 1.11) <<Contents | End>>
- Algorithm::=A precise description of a series of steps to attain a goal,
[ Algorithm ]
- Class::=A description of a type of object that includes the data it knows and the functions it can execute.
- Function::programming=A selfcontained and named piece of program that knows how to do something.
- Gnu::="Gnu's Not Unix", a long running open source project that supplies a
very popular and free C++ compiler.
- OOP::="Object-Oriented Programming",
Current paradigm for programming.
- Semantics::=Rules determining the meaning of correct statements in a language.
- SP::="Structured Programming",
a previous paradigm for programming.
- Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
- Q::software="A program I wrote to make software easier to develop",
- TBA::="To Be Announced", something I should do.
- TBD::="To Be Done", something you have to do.
- UML::="Unified Modeling Language", industry standard design and documentation diagrams.
- void::C++Keyword="Indicates a function that has no return".