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
dezoksy [38]
2 years ago
12

Define a function named signof that recieves an integer argument and returns the value 1 if the argument

Social Studies
1 answer:
arsen [322]2 years ago
7 0

The signof function of COSC can be defined as following:

def signOf(int):

>>> if int>0:

>>> >>> return 1

>>> elif int==0:

>>> >>> return 0

>>> else:

>>> >>> return -1

It receives an integer argument and returns the value 1 if the parameter is positive, 0 if parameter is 0 and -1 if the parameter is negative.

<h3>What are functions in computing?</h3>

Code units that are "self contained" and carry out a particular purpose are called functions. Typically, functions "take in," "process," and "return" data and results. Once a function has been written, it can be utilized countless times. It is possible to "call" functions from within other functions.

To know more about functions, visit:

brainly.com/question/19181382

#SPJ4

You might be interested in
MUST HAVE LOGICAL EXPLANATIONS TO ANSWER. OR YOU WILL BE REPORTED FOR INSUFFICIENT ANSWERING!!
Paul [167]

Answer:

Declaring a law unconstitutional

Explanation:

The role of congress members is to create laws and oversee the executive. In turn, the role of the judiciary is to monitor whether the constitution is being obeyed and, therefore, to analyze the constitutionality of the laws formulated by congressmen. Thus, it is for the supreme court to consider whether the laws are constitutional or exceed the limits imposed by the constitution.

4 0
3 years ago
Read 2 more answers
Why did General Sherman want to use total war on South
Airida [17]
To destroy all their resources and to steal there weapons
8 0
3 years ago
Which statement best describes how the spread of the Arabic language benefited other cultures?
katrin2010 [14]

Answer:

A: It helped people share new ideas

Explanation:

I didn't know the answer so I guessed and got I correct proof is the picture I have attached to this

6 0
4 years ago
The national government of Canada oversees ten provinces and three territories. The national government is made up an executive,
Neko [114]
D) <span>The provincial governments are allowed to handle issues that the national government does not.

</span>
8 0
3 years ago
Read 2 more answers
Jorge must inform Samantha that she is not eligible to have an August vacation for which she recently applied. Which of the foll
djyliett [7]

Answer:

The correct answer is letter B.

Explanation:

The answer that best suits the situation is the one that offers other possibility to Samantha. 'Although' is a word that weakens somehow the fact that the aaplication has been denied by leaving space to a following application in replace. The other answers does not give Samantha a different possibility, emphasazing the denial.

4 0
3 years ago
Other questions:
  • "Should a Christian ever disobey the government and if so, when?"
    15·1 answer
  • How would your country change if everyone could vote without limitations such as age restrictions and citizenship status?
    9·2 answers
  • The colonists built their governments based on customs and ideas borrowed from England and early civilizations, including unwrit
    5·1 answer
  • If a motivation researcher measured chemicals within a person’s blood or saliva (e.g., (epinephrine, cortisol), then that resear
    7·1 answer
  • Inga is running for president of the student body of her university. the night before the election, she and her opponent have a
    6·1 answer
  • In an example of 1600 registered​ voters, 912, or​ 57% approve of the way the president is doing his job. the​ 57% approval is a
    8·1 answer
  • Which of the following is the most valid reason for not digging up Aztec ruins in modern Mexico City?
    15·2 answers
  • A politician who attempts to build a coalition of rent-seeking groups by brokering transfers to those groups is
    14·1 answer
  • Technology has made our life easier. Justify the statement,​
    7·1 answer
  • over percent of the vehicles involved in motor vehicle crashes in 2008 were passenger cars or light trucks.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!