Due: by midnight Monday, September 10, 2012.
Your program listing should have the following information.
# File: Assignment0.py # # Description: # # Student's Name: # # Student's UT EID: # # Course Name: CS 313E # # Date Created: # # Date Last Modified:
Write a program to prompt the user to type in a line of text at the terminal. You will do this repeatedly until the user types an empty line. For each line the user types, do each of the following:
It took me about 15 minutes to write this program. You may need
the Python functions
felix:~/cs313e/assignments> python hw0.py Please enter a string: Take a zebra for a walk? User's input: Take a zebra for a walk? In uppercase: TAKE A ZEBRA FOR A WALK? In lowercase: take a zebra for a walk? The input contains the following characters: a: 5 b: 1 c: 0 d: 0 e: 2 f: 1 g: 0 h: 0 i: 0 j: 0 k: 2 l: 1 m: 0 n: 0 o: 1 p: 0 q: 0 r: 2 s: 0 t: 1 u: 0 v: 0 w: 1 x: 0 y: 0 z: 1 Using the Caesar cipher: ublfbafcsbgpsbxbml Please enter a string: felix:~/cs313e/assignments>