Answer:
class Letter:
header="Dear "
footer="Sincerely, \n"
text=""
def __init__(self,letterFrom,letterTo):
self.header+=letterTo + ":\n\n"
self.footer+=letterFrom + "\n"
def getText(self):
return self.header+self.text+self.footer
def addLine(self,line):
self.text+=line+"\n\n"
l = Letter("Cain", "Abel")
l.addLine("I am very happy to be writing to you at this joyful moment of my life.")
I.addLine("I am really sorry i killed you, I was a saddist back then.")
print(l.getText())
Explanation:
The Letter class a used to write a letter. The magic method "__init__" is used as a constructor to accept the sender and the recipient of the letter. The addLine method is called on an instance of the class to add string lines to the object while the getText method returns the entire written letter.
Answer: I'd go with Efficiency and Correct.
Answer:
Client
Explanation:
When your computer is connected to the internet it is always asking and sending data. Your computer is the client which recieves the data from the sever.
The appropriate response is an Expert system (ES). PC program that gives guidance to leaders who might somehow or another depend on human specialists. It's a sort of computerized reasoning that uses a database to give help to clients.
The answer is B. Trojan (causes damage to computer)
hope this helps