subject

Provide a class Letter() for authoring a simple letter. In the constructor, supply the names of the sender and the recipient: def __init__(self, letterFrom, letterTo)Supply a method def addLine (self, line) to add a line of text to the body of the letter. Supply a method def getText(self)that returns the entire text of the letter. You also need to implement a test file to test your Letter(). The letter should have the following form: Dear recipient name: "blank line"first line of the body second line of the body last line of the body "blank line" Sincerely, "blank line" sender name For example, assuming that you have the sender named John and the recipient named Mary. John wrote two lines of the letter: 1: "How are you?" 2: I really miss you! Your test file leveraging Letter() will have the following output: Dear Mary: How are you? I really miss you! Sincerely, John

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:30
These factors limit the ability to attach files to e-mail messages. location of sender recipient's ability to open file size of file type of operating system used
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
question
Computers and Technology, 25.06.2019 17:30
Compete the sentence with the phrase that makes the proof statement true. c is the midpoint to segment ae segment ab is congruent to segment de length ac is equal to length ab plus length bc
Answers: 2
You know the right answer?
Provide a class Letter() for authoring a simple letter. In the constructor, supply the names of the...
Questions
question
Biology, 09.12.2019 16:31
question
Mathematics, 09.12.2019 16:31
question
Mathematics, 09.12.2019 16:31
question
Biology, 09.12.2019 16:31
question
Mathematics, 09.12.2019 16:31
question
Mathematics, 09.12.2019 16:31
Questions on the website: 13722360