I wrote a simple game for CS project last year, and it was pretty bad. All logic was opaque, and there were tonnes of global variables!
👤 suramya_tomar Accepted Answer ✓
There were 2 function's called something like convert2Upper and Convert2lower (Don't remember the exact names) in Java that took a string broke it into characters and for each char did the following:
If (InputStr[$i] == 'a') InputStr[$i] = 'A';
If (InputStr[$i] == 'b') InputStr[$i] = 'B';
..
..
If (InputStr[$i] == 'z') InputStr[$i] = 'Z';
Written by someone with over 5 years 'experience'.