|
http://clown.ch/viewtopic.php?m=29&tp=20662&l=334 2007 Sv650 Test http://cvp-arbon.ch/viewtopic.php?m=42&tp=26546&l=846 Alana Leigh Blowjob http://chance.ch/viewtopic.php?m=36&tp=60347&l=528 Normal Wife Website http://christophsprenger.com/viewtopic.php?m=4&tp=46130&l=170 David Willams Natural Health Products http://christophsprenger.com/viewtopic.php?m=70&tp=39094&l=570 Crack Of Your Back http://christophsprenger.com/viewtopic.php?m=61&tp=44507&l=861 Dancing With The Stars Breasts http://chance.ch/viewtopic.php?m=87&tp=58983&l=145 Nintendo Ds Repair Cincinnati Ohio http://careerprocess.info/viewtopic.php?m=37&tp=86382&l=302 Saluda County Library Sc http://centroesposizioni.ch/viewtopic.php?m=54&tp=85111&l=594 Unicare Sound Surveys http://christophsprenger.com/viewtopic.php?m=80&tp=34795&l=117 Connecticut Drafting And Design Llc http://cvp-arbon.ch/viewtopic.php?m=84&tp=30334&l=174 American Institute Of Management http://chindershop.ch/viewtopic.php?m=96&tp=88216&l=891 Paul Morgan Complement http://chindershop.ch/viewtopic.php?m=97&tp=86430&l=698 Paramount Realty Auburn Al http://centroesposizioni.ch/viewtopic.php?m=27&tp=81129&l=573 Trixxxters Fund Raiser http://chasa-capol.ch/viewtopic.php?m=64&tp=50007&l=650 Linux Archos Player Video http://capunz.ch/viewtopic.php?m=55&tp=85320&l=560 What Is Kofax Vrs http://chindershop.ch/viewtopic.php?m=13&tp=87351&l=978 Passionflower Bottle http://cvp-fr.ch/viewtopic.php?m=76&tp=42607&l=586 Bad Bible Breath http://chance.ch/viewtopic.php?m=37&tp=62892&l=914 Nys 2007 Budget http://christophsprenger.com/viewtopic.php?m=37&tp=37843&l=148 Coto Do Caza |
Assignment1Kate
Sample output:
php kate.php c 20 cracklin'-cccccccccccccccccccccurling irons! Source code: <?php // $argc is the count of arguments that were passed from the the user in unix terminal if ($argc < 3 ) exit ("Please enter one letter (a-z) and a number (as big as you like), like this: php kjh_nt1b.php a 6 \n\n"); $letter = $argv[1]; $number = $argv[2]; echo ("\n\n"); // display a different word for each letter of the alphabet if ($letter == "a" ) { echo ("absolutely-am"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("zing!"); } if ($letter == "b" ) { echo ("blinkin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("rilliant!"); } if ($letter == "c" ) { echo ("cracklin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("urling irons!"); } if ($letter == "d" ) { echo ("diggity-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("oggies!"); } if ($letter == "e" ) { echo ("e"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("xtra-ordinary!"); } if ($letter == "f" ) { echo ("fartin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("antastic!"); } if ($letter == "g" ) { echo ("that's "); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("reat!"); } if ($letter == "h" ) { echo ("honkin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("eroic!"); } if ($letter == "i" ) { echo ("intensely-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ncredible!"); } if ($letter == "j" ) { echo ("jumpin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ammers"); } if ($letter == "k" ) { echo ("killer-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ickin'!"); } if ($letter == "l" ) { echo ("liberty-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("assos!"); } if ($letter == "m" ) { echo ("miracle-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ayhem!"); } if ($letter == "n" ) { echo ("nut-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("umbin'!"); } if ($letter == "o" ) { echo ("ogglin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ctopuses!"); } if ($letter == "p" ) { echo ("poppin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("andamonium!"); } if ($letter == "q" ) { echo ("querilous-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("uicknesses!"); } if ($letter == "r" ) { echo ("rambunctious-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("adioheads!"); } if ($letter == "s" ) { echo ("salutin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ailors!"); } if ($letter == "t" ) { echo ("terrific-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("amborines!"); } if ($letter == "u" ) { echo ("ultinate-e"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("lulations!"); } if ($letter == "v" ) { echo ("very-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("irulent!"); } if ($letter == "w" ) { echo ("wallopin'-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("hales!"); } if ($letter == "x" ) { echo ("excellent-e"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("clamations!"); } if ($letter == "y" ) { echo ("yipping-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ellowtails!"); } if ($letter == "z" ) { echo ("zipping-"); // display the chosen letter times the chosen number within the context of the word $count = 0; do { echo ($letter); $count = $count + 1; } while ($count <= $number); echo ("ebras!"); } echo ("\n\n"); echo ("\n\nThat was GREAT! Try again!\n\n"); ?> |