RU beehive logo ITEC dept promo banner
ITEC 120
2010fall
ibarland

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs

hw-ec
Extra Credit Homework

The following problems can be completed for extra credit points.

  1. (5pts) Write a function to “normalize” credit-card numbers: Whether given a string which has four blocks of four digits separated by spaces, or by hyphens, or by nothing, return one definitive version.
    (You may presume the input is otherwise correct — that is, there really are a total of 16 digits, and they are separated by one of the three conventions above.)
  2. (5pts) Write a function to tell if two strings are equal, without calling equals!
  3. (5pts) Write a function to tell if a String is a palindrome: whether it reads the same forward and backwards (for example, “eve” and “ABBA” are both palindromes).

    For 5pts additional credit, ignore punctuation and spaces (e.g. “Madam, I'm Adam.” or “A man -- a plan -- Panama!”).

    hint:Write a helper function similar to one used for the credit-card normalization.

  4. (5-10pts) Write a function to generate random strings.
    (It's up to you to somewhat formalize this notion; the amount of points received depends in part on what you choose to have your code do.)
  5. (up to 20pts) Complete the sequence of ISBN problems on lab09b—looping over strings.
  6. (up to 30pts) Complete the sequence of encryption problems as discussed on lab11a—Command-line Java: optional: encoding messages. Further points if you process puncuation and word-boundaries in an appropriate way for each situation.
  7. (variable pts) Complete image-processing filters as suggested on the upcoming image processing lab, or write your own.

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs


©2010, Ian Barland, Radford University
Last modified 2010.Dec.16 (Thu)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme