Class 2 review (06/10/2002)


  1. Here is example #1, random numbers.

  2. Here is example #2, 1st loops example. See page 231 of the textbook for syntax of the for statement.

  3. Here is example #3, nested for loops used to n leading spaces on the nth line of output, for a pretty pattern.

  4. Web page and HTML resources for Wright Hall and UNI CNS students. Editors, cowboy.cns.uni.edu, working from home or Wright or library, colors, HTML, permissions, etc.

    We looked at the RGB and base 16 concepts (hexadecimal), as well as talking about why computers use the BINARY or base 2 system. One byte equals two nybbles. One half byte is a nybble and those 4 bits (binary digits) can be expressed with one hexadecimal digit.
    The base 16 digits are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E, and F.
    Base 16 F = 15 in base 10 decimal and BR>hexadecimal F = 1111 in base 2 binary.


The top ten list for study/review of class #2.