CS303E Homework 1

Instructor: Dr. Bill Young
Due Date: Friday, September 3, 2021 at 11:59pm

Starting Programming in Python

Your task is to write a program that prints your initials in large letters. For example, if your name were "Thomas Alva Edison," you would print T.A.E. as shown below. If your name has less than 3 initials, pad on the right with X's. For example, if your initials are BY, you should display B.Y.X. If you have more than 3 initials, you can give them all or stop at 3; that's your choice.

  TTTTTTTTTTTT          AAAA          EEEEEEEEEEEE      
  TTTTTTTTTTTT          AAAA          EEEEEEEEEEEE     
       TT              AA  AA         EE               
       TT              AA  AA         EE               
       TT             AAAAAAAA        EEEEEEEEEEEE     
       TT             AAAAAAAA        EEEEEEEEEEEE      
       TT            AA      AA       EE               
       TT            AA      AA       EE               
       TT       ..  AA        AA  ..  EEEEEEEEEEEE  ..  
       TT       ..  AA        AA  ..  EEEEEEEEEEEE  ..  

Note that the big "T" is made of little "T"s, and so on. Each letter should be exactly 12 characters wide and 10 lines high. The width of each line segment making up each letter should be 2 characters. (Do your best for curves, but don't stress it! For the letter I, just pad around it to ensure that you use 12 spaces total or have a big serif at the top and bottom.) Each letter should be followed by a period, drawn using four "." characters, as shown above. There should be two empty columns of spaces to the left and to the right of each letter and period (including the final period). Notice that this means that every line should be the same length, so pad on the right with blanks as needed. You won't see this on the screen, but it would be helpful if, for example, you or someone else neede to modify your program by adding another letter on the right.

Also, there should be an empty line at the top and one at the bottom. (You can create an empty line with the command print(). It doesn't have to contain any spaces.) Make sure that you follow these directions exactly. Last semester most of the points lost were lost because of failure to do that! If you have extra spaces or extra columns, you will lose points. One of the most important lessons in computing is being able to follow a specification precisely.

Note: This assignment is only about printing some text; you don't have to generate each letter with a program or anything complicated like that. You can just create them using your text editor, put a print statement around each line, and assemble the print statements into a program. Of course, make sure you test your program before you submit it.

Turning in the Assignment:

The program should be in a file named Initials.py. Submit the file via Canvas before the deadline shown at the top of this page. Submit it to the assignment weekly-hw1 under the assignments sections by uploading your python file.

Your file must compile and run before submission. It must also contain a header with the following format. (This means that these comments should at the top of your Initials.py file, not in your program output.)

# File: Initials.py
# Student: 
# UT EID:
# Course: CS303E
# 
# Date Created:
# Date Last Modified: 
# Description of Program: 
The Description of the Program should be a few sentences describing what it does, so that someone can understand what your program does without reading the code. Don't write a book! This is only to say what it does, not how it's programmed in any detail.

If you submit multiple times to Canvas, it will rename your file name to something like Initials-2.py, Initials-3.py, etc. Don't worry about that; we'll grade the latest version.