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
In what types of governments would freedom of speech be limited?
RoseWind [281]
Dictatorship government
4 0
3 years ago
The Liberal Republican Party began to side with Democrats in believing that the federal government’s power had grown too much du
Dafna11 [192]

Answer:

This statement is True

Explanation:

Many members of the Democrats would go on to become members of the Liberal Republic party. Liberal Republicans were of the notion that the President and his administration at the time were corrupt. These Liberal Republicans were of the notion that the Reconstruction goals of stopping slavery and also destroying Confederate nationalism had been achieved already. This brought about the unity of Liberal Republicans and democrats in a bid to ensure that America does the right thing on every angle.

5 0
4 years ago
You want to include an expert opinion in a medical research paper
makkiz [27]

Answer:

True

Explanation:

Of course you would actually add an expert to make more people interested!

7 0
3 years ago
Select the correct answer.
Paladinen [302]

Answer:

neutral

Explanation:

5 0
3 years ago
What statement about the per-capita net income for Chinese citizens is true?
tatiyna
C.) Urban residents are twice as much as Rural residents
8 0
3 years ago
Read 2 more answers
Other questions:
  • Based on the letter, what was Lincoln's position on the Constitution?
    5·2 answers
  • Thomas Jefferson founded the Federalist Party.<br><br> Question 18 options:<br> True<br> False
    9·2 answers
  • How did jesus' teaching differ from that of the scribes with regard to obeying the law?
    13·1 answer
  • Can someone please help me
    5·2 answers
  • Someone please please help me i need a 90 to pass,
    14·1 answer
  • How do we can cooperate with each other
    13·1 answer
  • Ridewealth is how men compete over wives. The most desirable wives generate more intense competition from men, which drives up b
    14·1 answer
  • What are some of the challenges faced by transgender kids and their parents?
    15·2 answers
  • The president of Russia is A. elected directly by citizens. B. the head of the executive branch. C. chosen by the Federal Assemb
    12·2 answers
  • Sometimes, people with scientific backgrounds say bad things about religion, and sometimes people with religious backgrounds say
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!