1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
notka56 [123]
2 years ago
13

Write the implementation of a class Cse20 Topic that represents a topic in the cse20 class. The class should implement the init

function, getters, and override the str and add functions.
Computers and Technology
1 answer:
Kay [80]2 years ago
8 0

Answer:

class Cse20_topic:

   def __init__(self, title, length):

       self.title = title

       self.length = length

   def get_length(self):

       return self.length

   def get_title(self):

       return self.title

   def get_length_in_days(self):

       return self.length*7

   def __str__(self):

       return f'Title: {self.title}, length: {self.length}'

   def __add__(self, other):

       return self.length+other.length

Explanation:

The python program above defines the class Cse20 which is used to create a topic ( instance of the Cse20 object). The getter methods like the get_lenght, get_title and get_length_in_days return the length of a topic object, the title of the topic and the topic length in days respectively while the __str__ and __add__ methods overrides the string object and addition of topic length respectively.

You might be interested in
What type of socket should be used with an air impact wrench
Vikentia [17]
<span>Black sockets should be used, but the color is not the reason why. Chrome sockets will cause splits to form in the socket walls pretty quickly, after only a few uses. But the black sockets are that color because they have gone through a process called Parkerizing that coats the surface of the socket in order to provide more resistance when being used and protect the socket against corrosion.</span>
3 0
3 years ago
Within the sites that support disaster recovery, __________ is a separate facility that does not have any computer equipment but
inna [77]

Question:

Within the sites that support disaster recovery, __________ is a separate facility that does not have any computer equipment but is a place where employees can move after a disaster.

A) disaster site

B) hot site

C) warm site

D) cold site

Answer:

The correct answer is answer is D)                  

Explanation:

A cold site is a business location that is utilised as a  backup in the event of a disruptive operational disaster at the normal business site. A cold site is an office, but it does not always have the necessary equipment to resume prompt operations. The business paying for the cold site, provides and installs this equipment.

Cheers!

6 0
3 years ago
Which of the following job duties would a software developer perform?
juin [17]

<u>The most important job duty of a software developer is to develop a product/program that is easy to use and melts a customer’s need.</u>

<u></u>

Explanation:

Some other duties of  a Software developer are

  • Researching,designing and implementing new software program's and then managing them
  • Testing and evaluating the developed software program's
  • Identifying errors in the existing program's and modifying the same
  • Writing effective codes
  • employing various software tools
  • Training new users
  • Working closely with the other developers

8 0
3 years ago
4. Give name=
Svet_ta [14]

Answer:

What does Bob [1] return?

What about Bob[-2]?

What about Bob[1:-1]?

How to get the length of Bob?​

Explanation:

8 0
3 years ago
2. How do upgrading and retraining help you cope with change?
Luden [163]
<h2>Upgrading and retraining are mandatory to move along with the world.</h2>

Explanation:

Let us understand the term deeply,

Upgrading - Updating yourself with the latest

Retraining - learning new skills

Let me give you a real-life example which is nothing but "mobiles". If you are not updated then:

  • you will sit with mobile to make calls and
  • do money transactions only by stepping into the bank,
  • connect with people only through calls or directly visiting them,
  • distance break up the relationship,
  • booking tickets in classical way, etc.

These could be done in one touch if you have latest mobile with necessary applications.

In a similar way, we need to get retrained to get to learn new skills, technologies so that we can do our job the best, to be on track, be productive, convert your valuable knowledge in terms of money, to be peaceful in day today transactions, etc.

7 0
3 years ago
Other questions:
  • In order to plan George’s birthday, his father gave him a list of people who attended his birthday for the last five years. What
    8·2 answers
  • Given a scanner reference variable named input that has been associated with an input source consisting of a sequence of integer
    14·2 answers
  • What are the key ideas in dealing with a superior?
    9·1 answer
  • Why is democracy the best form of government
    5·1 answer
  • I keep getting this error: postfix.cpp: In function ‘double RPN_evaluation(std::string)’: postfix.cpp:42:26: error: cannot conve
    7·1 answer
  • What allows users to connect via the Internet to its private network?
    11·2 answers
  • Does anyone know how to change your username? plz help I don't want my name on this lmo
    8·2 answers
  • When you ____ an exception, you send a message that an error has occurred to another part of the program.
    7·2 answers
  • Drag the tiles to the boxes to form correct palrs.
    9·1 answer
  • Disadvantages of the divisional organization structure are _____. each division is able to operate independently from the parent
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!