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
elena-s [515]
3 years ago
15

Is_sum_odd that takes a non-negative integer number as parameter and returns true if the sum of individual digits is odd, false

otherwise.
Computers and Technology
1 answer:
lara31 [8.8K]3 years ago
6 0
Make sure that you understand how addDigits( number, base ) works!

```
#!/usr/bin/python

import sys


def addDigits( number, base ):
    if( number ):
        return( addDigits( number // base, base ) + ( number % base ) )
    else:
        return( 0 )


def wrapper( number, base=10 ):
    if( ( addDigits( number, base ) ) % 2 ):
        return True
    else:
        return False


if( __name__ == "__main__" ):
    if( len( sys.argv ) != 2 ):
        sys.stderr.write( "usage: " + sys.argv[ 0 ] + " <integer>\n" )
        exit( 127 )

    print wrapper( int( sys.argv[ 1 ] ) )
```

You might be interested in
How can I change my username here at brainly?
velikii [3]

Answer:

Explanation:

LOG OUT AND CHANGE IT

3 0
3 years ago
Read 2 more answers
Romans are credited with “inventing” the capital city l? T or F
Law Incorporation [45]

Answer:

T

Explanation:

just finished the assignment on edge

5 0
3 years ago
John is writing a code instructing the character to move forward 10 steps, choose a number between 1 to 10, and if the number is
gladu [14]

Answer: bro im suck on the same thing

Explanation:

8 0
3 years ago
Fiber optic cable from a service provider can be delivered directly to the end user. which implementation delivers data to a cab
Kryger [21]

An implementation which delivers data to a cabinet for distribution is: FTTN.

<h3>What is a fiber optic cable?</h3>

A fiber optic cable can be defined as a type of wired connector which are either made of glass or plastic and they are typically used for connecting one network device to another, so as to form a computer network and enable the continuous transmission of data between them.

<h3>What is FTTN?</h3>

FTTN is an abbreviation for Fiber To The Neighborhood and it can be defined as a type of fiber technology that is designed and developed for directly delivering data to a single physical cabinet that serves end users (population).

In conclusion, an implementation which delivers data to a cabinet for distribution is Fiber To The Neighborhood (FTTN).

Read more on fiberoptic cables here: brainly.com/question/116766

#SPJ1

3 0
2 years ago
What objective behaves like a high level array
zavuch27 [327]

Answer:

C.Vector

Explanation:

Vector is a high level array used in C++.It has the capability of resizing itself when it gets full.it has many functions that increases it's functionality like size(),begin(),end(),erase(),clear(),push_back(),pop_back() and many more and we store any kind of data type in the vector.

syntax for declaring a vector:-

vector<data type> vector name.

8 0
3 years ago
Other questions:
  • Write the definition of a function named alternator that receives no parameters and returns true the first time it is invoked, r
    12·1 answer
  • How would this requirement be implemented?
    12·1 answer
  • What does DOS stand for?
    15·1 answer
  • When gathering information, which of the following tasks might you need to
    13·1 answer
  • Which of the following gadgets is best for making a soft-shell shape out of butter?
    15·2 answers
  • To use an imported image, simply drag it from the desktop onto the stage. true or false
    15·2 answers
  • Suppose L is a LIST and p, q, and r are positions. As a function of n, the length of list L, determine how many times the functi
    8·1 answer
  • A command, such as a button or keyboard shortcut, that performs a specific task is known as a
    9·2 answers
  • How does beamforming improve network service?
    14·1 answer
  • Significant design efforts, during deliberate planning at combatant commands, produce results as those commands _____. (Select a
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!