[Skip Navigation] [CSUSB] / [CNS] / [CSE] / [R J Botting] / [CSE201] / 02example
[Text Version] [Syllabus] [Schedule] [Glossary] [Labs] [Projects] [Resources] [Grading] [Contact] [Search ]
Notes: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
Labs: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10]
Mon Jan 7 10:01:40 PST 2013

# The Collatz Sequence Algorithm

(

2. If the number equals 1 then stop.

3. If the number is too big for your calculator, stop.

4. If the number is divisible by 2, then (
1. Divide it by 2.
) else (
1. Multiply by it 3.
2. Add 1 to the number.
)

5. Go back and repeat starting from step 2 above.
)

# Abbreviations

1. Algorithm::=A precise description of a series of steps to attain a goal, [ Algorithm ] (Wikipedia).
2. Class::=A description of a type of object that includes the data it knows and the functions it can execute.
3. Function::programming=A selfcontained and named piece of program that knows how to do something.
4. Gnu::="Gnu's Not Unix", a long running open source project that supplies a very popular and free C++ compiler.
5. OOP::="Object-Oriented Programming", Current paradigm for programming.
6. Semantics::=Rules determining the meaning of correct statements in a language.
7. SP::="Structured Programming", a previous paradigm for programming.
8. Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
9. Q::software="A program I wrote to make software easier to develop",
10. TBA::="To Be Announced", something I should do.
11. TBD::="To Be Done", something you have to do.
12. UML::="Unified Modeling Language", industry standard design and documentation diagrams.
13. void::C++Keyword="Indicates a function that has no return value".