Computer Science 15-100, Summer 2009
Class Notes:  Loops Practice


Loops Practice

  1. Fun with Loops + Strings
    1. Print the characters from 'A' to 'Z'
    2. Print the Unicode values of the characters from 'A' to 'Z'
    3. Print the characters in a String
    4. Print the Unicode values of the characters in a String
    5. Print the uppercase characters in a String
    6. Determine whether a String is in uppercase
    7. Convert a String to uppercase
       
  2. Confirm the following math facts:
    1. 1 + ... + n                             = n(n+1)/2
    2. 1/2 + 1/4 + 1/8 + ...              = 1

carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem