frost@ucsd.edu (Richard Frost) (03/17/89)
[This was originally submitted to comp.sources.games, but I think this is a more appropriate newsgroup for it. -br] /* Today ... "for the hip only" A BLOOM COUNTY FORBIDDEN WORD DECODER "In future dialogue (appearing in comic strip), a boxed forbidden word such as ACBQLLR may appear. To decipher: 1. Match the letters to their equivalent number in the alphabet, like this: A - 1 C - 3 B - 2 etc. 2. Then, to each number add 100, divide by PI, round off evenly, and subtract rock star Jon Bon Jovi's short size ... 3. Match the new numbers to the letters again! */ /* Comment: this may all be a hoax. Let's see if a short-size can be found which makes sense! */ #define real float main () { char w[6], *c = "ACBQLLR"; /* given in strip */ real pi = 3.14159; unsigned short int i, k, j, jmin = 14, jmax = 31; /* j is john's short-size; jmin, jmax determined by plugging Z, A into formula */ for (j = jmin; j <= jmax; j++) { /* loop thru possible j's */ printf("%-4u", j); for (i = 0; i < 7; i++) { k = c[i] - 64 + 100; /* just showing my work ... */ w[i] = ( ((real)k)/pi + 0.5 ) - j + 64; printf("%c", w[i]); } printf("\n"); } } /* Conclusion: at least the given code word is a hoax !! */ ---------------------- Richard Frost E-mail: sdsu!frost@ucsd.edu - a scientist is someone who learns more and more about less and less until they know everything about nothing! (Ziman)