CSSE 120 -- Intro. to Software Development

Homework 16

Reminder: for each class session and associated homework:
  • You do the Reading Quiz on Angel.
  • You do all other work in Eclipse in the project that you checked out for that session or will check out per the homework instruction.
  • Unless otherwise specified, follow the template given in this document for solving each programming assignment.
  • You turn in your Eclipse work by committing that project:
    • Right-click on the project name in the Package Explorer view.
    • Select Team ~ Commit
    • In the message box that appears, put a message to yourself if you wish (eventually, these messages will be for your teammates) and press OK.

  1. There is no reading or quiz due next session.
  2. (15 points)  If you did not finish Blackjack with dictionaries in class, do so for homework. Commit your solutions in the Session16_Dictionaries project to your in your individual repository.
  3. (25 points) Texting Translator Granny just got a cell phone, and wants you to text her to keep her up to date. However, she doesn't know any standard texting abbreviations, and the thought of having to write everything out is both repulsive and expensive!

    Create a module called module4_textExpander.py in the Session16_Dictionaries project that you checked out in class today. Write a program in that module that asks you for sentences, one at a time. As each is entered, it expands any texting abbreviations in the sentence into full words. You should store the abbreviations and full words in a dictionary. Your dictionary should include at least these:
    r are
    k okay
    lol laugh out loud
    imo in my opinion
    jk just kidding
    g grin
    hw homework

    You don't need to handle punctuation, and your output need not preserve the exact whitespace entered, as shown:

    Please enter your text after each prompt. <Enter> to quit.
    >imo you r great
    in my opinion you are great 
    >lol g g
    laugh out loud grin grin 
    >got to do my hw
    got to do my homework
    > 
    
  4. Commit all your solutions to your individual repository.