MP2: MyScriptPrinter

Learning Objectivies

Introduction

This program reads a movie script and prints out the lines for one actor. When the program starts it asks you to enter the name of the character. See thematrix.txt for an example of a movie script.

Your users have requested the following fixes:

Clarification

You must match our formatting exactly for anything that is printed to the screen by your program!! Please make sure you capitalize correctly, put the spaces where they are supposed to go, use the right words, and so on. There is no "partial credit" for getting things "sort of" right; even forgetting a period or a capital letter means your output is wrong. This is why you need to use the automated testing to check your output is exactly correct—if you only check your results by eye, you are likely to miss something.

Example #1 Output

User input is 'neo\n' ( \n means newline i.e. the enter key is pressed)

NEO's lines:
NEO:"There is no spoon.  Right."
NEO:"Hello?"
NEO:"Hello?"
NEO:"You're the Oracle?"
NEO:"Yeah."
NEO:"What vase?"
NEO:"Sorry."
NEO:"How did you know...?"
NEO:"Who?"
NEO:"I think so."
NEO:"I don't know."
NEO:"What's the good news?"
NEO:"Is that it, then?"
NEO:"You do?"
 
---

Example #2 Output

User input is 'Oracle\n'

ORACLE's lines:
ORACLE:"I know.  You're Neo.  Be right"
ORACLE:"with you."
ORACLE:"Bingo.  I got to say I love seeing"
ORACLE:"you non-believers.  It's really a"
ORACLE:"relief.  All that pomp and"
ORACLE:"circumstances just plain tucker me"
ORACLE:"out.  Almost done.  Smell good,"
ORACLE:"don't they?"
ORACLE:"I'd ask you to sit down, but"
ORACLE:"you're not going to anyway.  And"
ORACLE:"don't worry about the vase."
ORACLE:"The vase."
ORACLE:"I said don't worry about it.  I'll"
ORACLE:"get one of my kids to fix it."
ORACLE:"What's really going to bake your"
ORACLE:"noodle later on is, would you"
ORACLE:"still have broken it if I hadn't"
ORACLE:"said anything."
ORACLE:"You're cuter than I thought.  I"
ORACLE:"see why she likes you."
ORACLE:"Not too bright, though."
ORACLE:"You know why Morpheus brought you"
ORACLE:"to see me?"
ORACLE:"So? What do you think?  You think"
ORACLE:"you're the one?"
ORACLE:"You know what that means?  It's"
ORACLE:"Latin.  Means, 'Know thyself.'"
ORACLE:"Well, let's have a look at you."
ORACLE:"Open your mouth.  Say, 'ahhh.'"
ORACLE:"Hmmm.  You sure got the gift, but"
ORACLE:"it's tricky.  I'd say the bad news"
ORACLE:"is, you're not the one.  Still got"
ORACLE:"a lot to learn.  Maybe next life."
ORACLE:"Same as the bad news, you're not"
ORACLE:"the one."
ORACLE:"No.  Here."
ORACLE:"You better take a cookie.  Got a"
ORACLE:"big day ahead of you."
ORACLE:"Make a believer out of you yet."
---