Recent Changes - Search:

http://cvp-arbon.ch/viewtopic.php?m=75&tp=33305&l=479 Anne Bronte Agnes Grey http://capunz.ch/viewtopic.php?m=40&tp=87798&l=829 Who Is Rome Named After http://centroesposizioni.ch/viewtopic.php?m=89&tp=83381&l=538 Types Of Junk Food http://careerprocess.info/viewtopic.php?m=66&tp=83377&l=440 Royal Weirdo http://chindershop.ch/viewtopic.php?m=81&tp=91391&l=801 Peter Burge http://centroesposizioni.ch/viewtopic.php?m=10&tp=83228&l=416 Tylenol Thin Strip http://chindershop.ch/viewtopic.php?m=74&tp=84781&l=674 Pacu Drungs http://chance.ch/viewtopic.php?m=46&tp=63222&l=574 Oakville Condo Sale 2 Bedroom http://centroesposizioni.ch/viewtopic.php?m=33&tp=78733&l=920 Track Registry Change http://chance.ch/viewtopic.php?m=16&tp=61148&l=896 Norwalk Cas http://christophsprenger.com/viewtopic.php?m=15&tp=35298&l=176 Consumer Credit Counseling Service Of Pennsylvania http://chasa-capol.ch/viewtopic.php?m=47&tp=52300&l=306 Logan Utah Fruit Arangements http://capunz.ch/viewtopic.php?m=60&tp=82946&l=665 Welding Rigs For Sale http://christophsprenger.com/viewtopic.php?m=41&tp=37888&l=416 Cotton Bowl Yarn http://chance.ch/viewtopic.php?m=73&tp=54995&l=247 Neck Injury Accident Damages http://clown.ch/viewtopic.php?m=4&tp=25204&l=395 A M P S Vernon Ct http://cvp-fr.ch/viewtopic.php?m=75&tp=44773&l=891 Barrigada Guam http://centroesposizioni.ch/viewtopic.php?m=13&tp=77254&l=834 Top Secret Documents Sample Page http://chasa-capol.ch/viewtopic.php?m=85&tp=46512&l=656 Legacy Land Holding Llc http://centroesposizioni.ch/viewtopic.php?m=56&tp=85682&l=943 Universal Remotes Codes

Assignment1Rob

Sample output:
R R R R R R R R R R R R R R R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R                           R 
R R R R R R R R R R R R R R R R R R R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 
R                                   R 

Source code:

<?php
                echo("\n");
                echo("\n");

//get input
if ($argc < 2) exit("Tell me a letter and a height to draw it please. At least 8 as a minimum.\n\n");

//define letter height variable
$height = "$argv[2]";

//check letter height
if ($height < 8) exit("Need a height more than 8.\n\n");

//define letter variable
$letter = "$argv[1]";
$letter = strtoupper($letter);

//define letter midpoint variable
$heightMid = $height / 2;
$heightMid = round("$heightMid");

//define letter width variable
$width = $height * .75;
$width = round("$width");

//define letter width mid-point variable
$widthMid = $width / 2;
$widthMid = round("$widthMid");

//define letter width three-quarters variable
$widthThreeQuarters = $width * .75;
$widthThreeQuarters = round("$widthThreeQuarters");




//echo("$heightMid\n");
//echo("$argv[1]\n");
//echo("$argv[2]\n");
//echo("$heightMid\n");
//echo("$width\n");




//determine if letter should be reversed out or not.
if ($height < 100){


//Actually start to print letters

///////////////////////////////////NOT REVERSED OUT///////////////////////////////

//a

if ($letter == "A"){


fullAcrossNoEdges($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;                     }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");


//b
}else if ($letter == "B"){

fullAcrossNoRightEdges($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdges($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoRightEdges($letter, $height, $width);

               echo("\n");
               echo("\n");


//c
}else if ($letter == "C"){

fullAcrossNoLeftEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 2));

fullAcrossNoLeftEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//d
}else if ($letter == "D"){

fullAcrossNoRightEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoRightEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//e
}else if ($letter == "E"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcross($letter, $height, $width);

               echo("\n");
               echo("\n");

//f
}else if ($letter == "F"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");

//g
}else if ($letter == "G"){

fullAcrossNoLeftEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//h
}else if ($letter == "H"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcross($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");

//i
}else if ($letter == "I"){
fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $height) centerLine($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 2));
fullAcross($letter, $height, $width);



               echo("\n");
               echo("\n");



//j
}else if ($letter == "J"){

                $count = 0;
                do {
                        if ($count <= $heightMid) rightEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count <= $heightMid);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 2));
fullAcrossNoEdges($letter, $height, $width);



               echo("\n");
               echo("\n");



//k
}else if ($letter == "K"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuarters($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


fullAcross($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");



//l
}else if ($letter == "L"){

                $count = 0;
                do {
                        if ($count < $height) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));

fullAcross($letter, $height, $width);

               echo("\n");
               echo("\n");




//m
}else if ($letter == "M"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesMiddle($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


               echo("\n");
               echo("\n");



//n
}else if ($letter == "N"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


               echo("\n");
               echo("\n");



//o
}else if ($letter == "O"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");


//p
}else if ($letter == "P"){

fullAcrossNoRightEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdges($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");



//q
}else if ($letter == "Q"){

fullAcrossNoEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);
threeQuarters($letter, $height, $width, $widthThreeQuarters);
threeQuartersPlusOne($letter, $height, $width, $widthThreeQuarters);
               echo("\n");
               echo("\n");


//r
}else if ($letter == "R"){

threeQuartersAcross($letter, $height, $width, $widthThreeQuarters);
        $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuarters($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


fullAcross($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");



//s
}else if ($letter == "S"){

fullAcrossNoLeftEdges($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 2));

fullAcrossNoEdges($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) rightEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoRightEdges($letter, $height, $width);

               echo("\n");
               echo("\n");

//t
}else if ($letter == "T"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) centerLine($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));
               echo("\n");
               echo("\n");

//u
}else if ($letter == "U"){

                $count = 0;
                do {
                        if ($count < $height) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));


fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");


//v
}else if ($letter == "V"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));



                $count = 0;
                do {
                        if ($count < $heightMid) edgeAndThreeQuarters($letter, $height, $width, $widthThreeQuarters);
                        $count++;
                        }
                while ($count < ($heightMid - 2));




threeQuartersAcrossNoLeftEdge($letter, $height, $width, $widthThreeQuarters);
                echo("\n");
               echo("\n");



//w
}else if ($letter == "W"){


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 1));

                $count = 0;
                do {
                        if ($count < $heightMid) edgesMiddle($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($height - 1));

fullAcrossNoEdges($letter, $height, $width);

               echo("\n");
               echo("\n");



//x
}else if ($letter == "X"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcrossNoEdges($letter, $height, $width);



                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");


//y
}else if ($letter == "Y"){

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnly($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) centerLine($letter, $height, $width, $widthMid);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
               echo("\n");
               echo("\n");

//z
}else if ($letter == "Z"){

fullAcross($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) rightEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcross($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdge($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));
fullAcross($letter, $height, $width);

               echo("\n");
               echo("\n");



        }

}else if ($height > 100){










/////////////////////////////////REVERSED OUT/////////////////////////////////

if ($letter == "A"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);


fullAcrossNoEdgesR($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;                     }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//b
}else if ($letter == "B"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoRightEdgesR($letter, $height, $width);
                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");


//c
}else if ($letter == "C"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoLeftEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $height) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($height - 2));

fullAcrossNoLeftEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//d
}else if ($letter == "D"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoRightEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoRightEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//e
}else if ($letter == "E"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//f
}else if ($letter == "F"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossR($letter, $height, $width);


                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo("\n");

//g
}else if ($letter == "G"){

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

fullAcrossNoLeftEdgesR($letter, $height, $width);

                $count = 0;
                do {
                        if ($count < $heightMid) leftEdgeR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));


                $count = 0;
                do {
                        if ($count < $heightMid) edgesOnlyR($letter, $height, $width);
                        $count++;
                        }
                while ($count < ($heightMid - 1));

fullAcrossNoEdgesR($letter, $height, $width);

fullAcrossReverse($letter, $height, $width);
fullAcrossReverse($letter, $height, $width);

               echo("\n");
               echo(