Prog 1: Print UIC

8/30 Addition: Violating the rule about not using functions, arrays or strings will result in a 10 point penalty.  Shown below in blue.

Write a program in the Codio programming environment that allows you to print the letters U  I  C as block characters made using asterisks. Running the program and choosing option 1 should look like:

Go Flames! Choose from among the following options:   1. Display U I C as horizontal block letters   2. Display U I C as vertical block letters   3. Display U I C as an animation   4. Exit the program Your choice -> 1  ------------------------  *     *  ****     * * *     *   **    * *     *   **   * *     *   **   * *     *   **    *   * *    ****     * *  ------------------------  Running the program and choosing option 2 should look like:   Go Flames! Choose from among the following options:   1. Display U I C as horizontal block letters   2. Display U I C as vertical block letters   3. Display U I C as an animation   4. Exit the program Your choice -> 2  -------  *     * *     * *     * *     * *     *   * *  ****   **   **   **   ** ****    * * * * * *   * *  -------                 Running the program and choosing option 3 should look like the following.  Clearing the screen between displays can only be appreciated when running the program from the command line.  Go Flames! Choose from among the following options:   1. Display U I C as horizontal block letters   2. Display U I C as vertical block letters   3. Display U I C as an animation   4. Exit the program Your choice -> 3  Clear the screen between displays? (Y/N) -> n How many sets of letters? -> 5 How many blanks between letters (0..30)? -> 1 ------------------- * * ****  * *     *  **  * *     *  **  * *     *  **   * *     *  **     * * *     * ****   * *  ------------------- ------------------- **** *     *  **     * * *     *  **   * *     *  **  * *     *  **  * *     * ****  *   * *           * *   ------------------- ------------------- *     * *     * **** *     *  **     * * *     *  **   * *     *  **  *   * *    **  * ****  * * *  ------------------- -------------------  *     *         * * *     * ****  * *     *  **  * *     *  **  * *     *  **   *   * *    **     * * ****  ------------------- -------------------         * * ****  * *     *  **  * *     *  **  * *     *  **   * *     *  **     * * *     * ****   * *  -------------------  Running the program and again choosing option 3 could look like the following, where this time we increase the number of spaces between the letters, which has the effect of also increasing the length of the lines at the top and bottom.  Go Flames! Choose from among the following options:   1. Display U I C as horizontal block letters   2. Display U I C as vertical block letters   3. Display U I C as an animation   4. Exit the program Your choice -> 3  Clear the screen between displays? (Y/N) -> n How many sets of letters? -> 4 How many blanks between letters (0..30)? -> 5 --------------------------- * *     ****      * *     *      **      * *     *      **      * *     *      **       * *     *      **         * * *     *     ****   * *  --------------------------- ---------------------------     **** *     *      **         * * *     *      **       * *     *      **      * *     *      **      * *     *     ****      *   * *                   * *   --------------------------- --------------------------- *     * *     *     **** *     *      **         * * *     *      **       * *     *      **      *   * *        **      *     ****      * * *  --------------------------- ---------------------------  *     *                 * * *     *     ****      * *     *      **      * *     *      **      * *     *      **       *   * *        **         * *     ****  ---------------------------  Running the program and choosing option 4 to exit should look like:   Go Flames! Choose from among the following options:   1. Display U I C as horizontal block letters   2. Display U I C as vertical block letters   3. Display U I C as an animation   4. Exit the program Your choice -> 4

We may rerun all tests within Codio before grading your program, so you need to test your program to make sure your program can pass all the tests.  See the executable version of the program within the Codio project for the definitive version of what it should look like.

What You Need to Know

Notes