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
Denita is a very ardent, right-wing conservative and always votes for Republican candidates. She recently met Troy, who she thin
Ivanshal [37]

Answer:

matching hypothesis

Explanation:

Matching hypothesis -

It is the theory , where the people with similar quality , behaviour or thinking tries to be together , in term of the social desirability , is known as matching hypothesis .

According to this theory , people tries to select their partner considering their taste to be as similar as possible , so they both can have same or similar thinking for life .

From this theory , people evaluate their own value and make some realistic choices by characterizing the best potential partner , to establish the similar level of attraction and comfort .

6 0
3 years ago
Usa weekly 32 5th grade crossword answer key please!
iragen [17]

Answer: I think you were supposed to put a picture of your crossword puzzle...we can't answer because we don't know the questions

Explanation:

6 0
3 years ago
Read 2 more answers
Which of the following is an example of an implied power Of the federal government? A) Making laws about divorce and custodial r
dedylja [7]

Answer:

C

Explanation:

passing laws as about public lands are to be used

7 0
3 years ago
What are the causes and effects of WW1
aksik [14]
“The M.A.I.N. causes of World War I were Militarism, secret Alliances, Imperialism and Nationalism. The driving force was nationalism. ... The igniting incident of the “Great War” was the assassination of the Archduke Franz Ferdinand, heir to the Austro-Hungarian Empire, in Bosnia by a Serbian nationalist.
8 0
3 years ago
What helps to make northeast china a vast agricultural area?
Oduvanchick [21]
<span>c. It has fertile soil. </span>
6 0
3 years ago
Read 2 more answers
Other questions:
  • Name a mineral that changed history ?
    5·1 answer
  • How could the federal government have made the Dawes Act more successful? A. by refusing to allow Native Americans to assimilate
    6·2 answers
  • How is the observable universe bigger than its age?
    11·1 answer
  • The Articles of Confederation created a government that had
    6·2 answers
  • According to_________ theory, global poverty can at least partially be attributed to the fact that the low-income countries have
    6·1 answer
  • __ is defined as a psychological state that exists when you agree to make yourself vulnerable to another because you have positi
    11·1 answer
  • Choose the answers that best complete each sentence.
    12·2 answers
  • A set of skills that help individuals achieve their goals in interpersonal interactions while maintaining positive relations wit
    11·1 answer
  • Your teammate has strong evidence to support an idea during a meeting. however, the teammate has trouble articulating it. this i
    13·1 answer
  • parents who attempt to direct their children's activities in a rational and intelligent way and are supportive, loving, and comm
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!