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
GI Design is a small studio that designs and builds items such as fountains and tabletops made from copper. To increase sales, G
miss Akunina [59]

Answer: Relevant information  collection

Explanation:

In marketing research technique,gathering of information, data and facts related with the marketing field to obtain knowledge about certain topic is known as information collection.It helps in evaluating the result, solution to any problem, pursuing any research etc to increase profit, sales and marketing.

According to the question, Greg is involved in collection of relevant information regarding the copper furnishing requirement by the designers so that he can work accordingly to gain more profit ans improve sales by working as per their requirements.So, he is inquiring about the actual and related information by communicating with designers..

8 0
3 years ago
Do middle-class youths become delinquent for the same reasons as lower-class youths? Explain your answer.
Zarrin [17]
Middle class youth do not become the same as lower class youth because there in different situations and different home environments!
7 0
3 years ago
Chandraguptra Mayura succeeded in uniting the Indian subcontinent through
Nitella [24]
Chandragupta Mayura  first conquered the continent ( so by conquering could be an option), but then managed to introduce long-termn changes by reforms which lead to the modernization of the subcontinent, which is the right answer.
4 0
3 years ago
Read 2 more answers
Monarchy is a type of autocracy that is ran by_ ____
gayaneshka [121]

Answer:

A

Explanation:

B would mean a dictatorship

5 0
3 years ago
Which is the reason why Australia has a low Aborigines population density? A) Aborigines could not adapt to climate changes in A
denpristay [2]

Answer:

c

Explanation:

3 0
3 years ago
Other questions:
  • The process of dividing a market into distinct groups of buyers who have different needs, characteristics, or behavior and might
    12·1 answer
  • How do doctors meet people's needs<br> how do doctors meet their needs?<br> plz answer this
    8·1 answer
  • What are five strategies can be applied to manage young people's social networking habits?
    14·1 answer
  • Americans who believe that government should play a substantial role in the distribution of economic benefits, working to ensure
    5·1 answer
  • What happens during a pilgrimage?
    8·2 answers
  • ". . . The replacement of the bourgeois by the proletarian state is impossible without a violent revolution. The abolition of th
    7·1 answer
  • When is the State of the Union address usually given?
    15·1 answer
  • Choose the correct statements describing the experiment shown on the right.
    15·1 answer
  • Within each skeletal muscle fiber densely packed, striated subunits known as ____ extend in parallel rows from one end of the ce
    15·1 answer
  • state mandated benefits coverage applies to all types of health benefits plans that provide coverage in that state.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!