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
The dead sea, witch is surrounded by lsrael and jordan is not actually a sea , but a salt water
grandymaker [24]
Lake because it is not connected to ocean water

4 0
3 years ago
paano matiwasay na iiral sa lipunan ang pagtutulungan at pagkakaisa mula sa pamahalaan para sa mamamayan at mamamayan para sa ka
mr Goodwill [35]

Answer:

o FC p7fqwvpcsppcsp7woutcpurcqprfp8qrgairgqpqirclutclqurcfqwvdap7fwpsitqxdlydeluevqpusfss1upceo16qxulcsqlivdligdpwivouadeiwgoquecoud

5 0
3 years ago
Each society generally has a set of standards or expectations regarding the behaviors and traits that are considered desirable f
Mrac [35]

Answer:

Gender roles

Explanation:

Sex

This is simply known as the biological characteristics humans and animals are born with that determine if they are male or female

Gender:

This is simply a learned attitudes and behaviors that group/ place a distinction between men and women

Gender identity

This is simply an individual's right or subjective sense of being a man or a woman. It is an individual's view of him/herself as masculine or feminine.

Gender roles:

This is refered to as characteristics, attitudes, feelings, and behaviors that society expects of males and females in particular. They are also called norms about the behaviors and attitudes that is expected of men and women.

Gender stereotypes:

This are the human expectations about how people should look/act/think based on their sex

3 0
2 years ago
Environmental ____ is affected by environmental complexity, change, and resources. a. uncertainty b. differentiation c. difficul
Black_prince [1.1K]
Environmental uncertainty is affected by environmental complexity, change and resources. The correct option among all the options that are given in the question is the first option or option "a". Environment needs to be protected for the sake of survival of all living things. Any kind of uncertainty regarding environment can have a devastating effect.
5 0
3 years ago
What type of harassment occurs when a manager or supervisor leverages a "you do this for me and I'll do that for you" scenario?
Pachacha [2.7K]

<u>Answer: </u>

The type of harassment that occurs when a manager or supervisor leverages a "you do this for me and I'll do that for you" scenario is referred to as the quid pro quo harassment.

<u>Explanation: </u>

  • A quid pro quo harassment is often done in order to get a favor in return for doing something for someone at the workplace. This favor can be both, physical or monetary.
  • In most cases, this type of harassment is done for physical favors and women are the most vulnerable victims of such type of harassment.
3 0
3 years ago
Other questions:
  • A well-formulated vision that is embraced by employees can give an organization an edge over its rivals. Group of answer choices
    15·2 answers
  • What is the difference between a civil and criminal law??
    5·2 answers
  • Who discovered the United States of America?
    15·2 answers
  • To strengthen Judah spiritually, priests and teachers were sent throughout the land by King _____ to teach the Law of the Lord.
    9·2 answers
  • Across the globe, urbanization has been caused by (select all that apply, there are one to four possible correct answers)? Techn
    14·2 answers
  • What are organised sector? give examples​
    15·1 answer
  • What did the 11th amendment of the constitution establish? Why was this important for American rights?
    10·1 answer
  • How can Indian Human resource become more productive and employable?
    8·1 answer
  • What is defined as the people that carry out the ruling authority over a political unit?
    14·1 answer
  • What was the role of the judicial branch of Roman government? O It created the laws. Olt enforced the laws. O It interpreted the
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!