/*********************************************************************** * Julie4Chapel implementation of "99 bottles of beer" * * by Fahad Khan (on behalf of his friend) * 07/04/2007 in H Grammar School * compiles and runs with Juliec Operator v1.1, download it from www.hgs.bravehost.com * for more information, contact: fahad_afsar@yahoo.co.uk * * * Notes: * o as in all good parallel computations, boundary conditions * constitute the vast bulk of complexity in this code (invite Brad to * tell you about his zany boundary condition simplification scheme) * o uses type inference for variables, arguments * o relies on integer->string coercions * o uses named argument passing (for documentation purposes only) ***********************************************************************/ // allow executable command-line specification of number of bottles // (e.g., ./a.out -snumBottles=999999) config const numBottles = 99; const numVerses = numBottles+1; // a domain to describe the space of lyrics var LyricsSpace: domain(1) = [1..numVerses]; // array of lyrics var Lyri