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
ki77a [65]
4 years ago
11

Define the method object inc_num_kids() for PersonInfo. inc_num_kids increments the member data num_kids.Sample output for the g

iven program with one call to inc_num_kids():Kids: 0New baby, kids now: 1
Computers and Technology
1 answer:
topjm [15]4 years ago
4 0

Answer:

class PersonInfo:

   def __init__(self):

       self.num_kids = 0

   def inc_num_kids(self):

       self.num_kids += 1

person1 = PersonInfo()

print('Kids:', person1.num_kids)

person1.inc_num_kids()

print('New baby, kids now:', person1.num_kids)

Explanation:

Line 1 of the code, we define the class PersonInfo. Line 3 of the code is the function that will increment the member data num_kids.

You might be interested in
Select the correct answer.
Harrizon [31]

Answer: B. judgment

Explanation: To critique a work of art, there are a 4 steps method:

<u>Description</u>: describe everything you see in the work: name of the artist, the title, what you observe, what media he/she used, the year it was created;

<u>Analysis</u>: describe how the artist uses the <u>elements of art</u> (line, shape, color, texture, space) and the <u>principles</u> <u>of</u> <u>design</u> (balance, movement, pattern, emphasis, contrast);

<u>Interpretation</u>: try to explain what is the meaning of the art, why the artist created it, what was he/she's idea for it, based on the 2 previous steps;

<u>Judgment</u> <u>or</u> <u>Evaluate</u>: make an opinion of why the art is worth it based on the other steps and give reasons for liking or disliking, its importance or the way it make you feel;

After going through each step, your evaluation or opinion will be expressed in the 4th step: Judgment.

6 0
3 years ago
A(n) ________ operator, such as the greater than or less than symbol, can be used in a query criterion to limits the results pro
Tcecarenko [31]

Answer:

A _comparison_ operator, such as the greater than or less than symbol, can be used in a query criterion to limits the results produced by the query

5 0
4 years ago
Read 2 more answers
Cassie is worried about credential management on a network where users often have over six passwords to remember. She’s curren
nadya68 [22]

Answer:

Use a password manager

Explanation:

It is a disadvantage to use usernames and passwords for account authentication is a fundamentally defective security mechanism.

Your pet's name and other nomenclatures are very easy for hackers.

Advantages of a password manager:

  • Most password managers use multifactor authentication.
  • The information is stored, in encrypted form, on the servers operated by the providers; This is a strong enough security.
  • Examples of password managers LastPass, 1Password, Bitwarden, RoboForm, Intuitive Password, Dashlane, RoboForm etc.
5 0
4 years ago
Which two technologies support the building of single-page applications? and are two technologies helpful in building single pag
Sholpan [36]

Answer:

You can use JavaScript, HTML, PHP and so forth.

Explanation:

7 0
3 years ago
Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer
oksano4ka [1.4K]

Answer:

The program in Python is as follows:

def get_user_values():

   user_values = []

   n = int(input())

   for i in range(n+1):

       inp = int(input())

       user_values.append(inp)

   output_ints_less_than_or_equal_to_threshold(user_values,user_values[n])

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

   for i in user_values:

       if i <= upper_threshold:

           print(i,end=" ")

           

get_user_values()

Explanation:

This defins the get_user_values() method; it receives no parameter

def get_user_values():

This initializes user_values list

   user_values = []

This gets the number of inputs

   n = int(input())

This loop is repeated n+1 times to get all inputs and the upper threshold

<em>    for i in range(n+1):</em>

<em>        inp = int(input())</em>

<em>        user_values.append(inp)</em>

This passes the list and the upper threshold to the output..... list  output_ints_less_than_or_equal_to_threshold(user_values,user_values[n])

This defines the output.... list

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

This iterates through the list

   for i in user_values:

If current element is less or equal to the upper threshold, the element is printed

<em>        if i <= upper_threshold:</em>

<em>            print(i,end=" ")</em>

The main method begins here where the get_user_values() method is called

get_user_values()

7 0
3 years ago
Other questions:
  • To use an outline for writing a formal business document what should you do after entering your bottom line statement
    10·1 answer
  • EXPLAINING A URL
    15·1 answer
  • Please help
    5·1 answer
  • You install a teanviewer on your work station at home so that you can access it when on the road. How can you be assured that un
    12·1 answer
  • Create a calendar named fitness and then display it in a calendar view with the default calendar.
    15·1 answer
  • Chunking is a good strategy for completing large assignments because it makes the work
    7·2 answers
  • FIGURE A-1—Use the information in this chart to answer Question 1.
    6·1 answer
  • Pride Group of Companies is making tremendous profits in different categories of electronic goods. The group of managers have to
    12·1 answer
  • Your _______ can help block inappropriate content online.<br> 1. web browser<br> 2. Password
    14·1 answer
  • List and briefly define the four main elements of a computer.​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!