Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 20:30, maryanapritchak1829
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
image
Computers and Technology, 24.06.2019 17:00, harlon852
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, brendahndz8676
Is a type of bullying that takes place when a person intentionally posts negative information about another person that is not true.
Answers: 2
image
Computers and Technology, 25.06.2019 01:00, shonesam98
Regular maintenance is a key component of automotive lift safety.
Answers: 1
Do you know the correct answer?
Provide a class Letter() for authoring a simple letter. In the constructor, supply the names of the...

Questions in other subjects:

Konu
Spanish, 08.05.2021 01:00
Konu
Mathematics, 08.05.2021 01:00