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
According to the excerpt, which executive office in Texas is appointed?
Hitman42 [59]

Answer:There shall be a Secretary of State, who shall be appointed by the Governor, by and with the advice and consent of the Senate, and who shall continue in office during the term of service of the Governor.

Explanation:

6 0
3 years ago
Nathan is diabetic. he frequently discounts the negative consequences of eating candies, which are rich in sugar. this is an exa
Alexxx [7]
<span>This is the ego-defensive function of attitude. This concept allow a person to hold a belief that is protective of one's self-concept, even if the belief is not true or goes against accepted wisdom. In this case, Nathan is holding onto the notion that he will not receive negative consequences for having too much sugary food, even while diabetic. This is a way of still trying to feel good while acting in a harmful way toward oneself.</span>
5 0
4 years ago
CSOD Stone Coast Academy
ohaa [14]

Answer:

D. Located in a singles' building

Explanation:

The Fair Housing Act is a law that prevents homeowners from making it difficult or impossible to rent or buy a home because of racist, xenophobic and homophobic concepts among other forms of discrimination. One of the forms of discrimination that this law prohibits is about family status that informs what family situation an individual is in. In this case, the option "Located in a singles' building" provides a type of violation of this law, since this option generalizes a type of family status, which can cause discrimination.

5 0
3 years ago
When a woman talks about her problems with a friend, she usually wants:
Bogdan [553]
She would want sympathy or understanding so B
5 0
3 years ago
Read 2 more answers
Which technique was most likely used to measure increased neural activation of specific brain regions when viewing the images of
SSSSS [86.1K]
I believe functional magnetic resonance imaging
5 0
4 years ago
Other questions:
  • According to mla style guidelines how should information be listed on a works cited page for a book by one author
    5·1 answer
  • The_______ lies 66 1/2 degrees south of the equator. O A) Tropic of Capricorn OB) South Pole OC) Antarctic Circle​
    6·1 answer
  • Are International relations beneficial for UAE? pls give explaination also.
    11·2 answers
  • _____ are sources of revenue for both federal and state governments. Individuals pay this tax from the money they earn.
    15·2 answers
  • The law of demand states that
    15·2 answers
  • Who helped faced the challenges on lewis and clark
    15·1 answer
  • In recent years, political candidates from Mexico, the Dominican Republic, and elsewhere have come to the United States to seek
    12·1 answer
  • What is your ideal physical community
    13·1 answer
  • What were 3 concerns of Spanish settlers in the americas during the 1500's?
    15·1 answer
  • Explain what is meant by “rhetoric”;
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!