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
People who worked the land or served the nobals in the medieval time
gizmo_the_mogwai [7]
They were called serfs.
6 0
4 years ago
Reflexión sobre el papel de masas
sergiy2304 [10]

Answer:

Yes. Your movements especially if you are famous can be recorded by historians. So your actions are reflected.

5 0
3 years ago
When planning communications, you should consider access and functional needs together with cultural differences. A. TRUE B. FAL
Mama L [17]

Answer: A.TRUE

Explanation:The answer is true because when planning communications they should include.

1. Identify the purpose of your communication.

2. Identify your audience.

3. Plan and design your message.

4.Consider access and functional

needs with cultural differences.

5.Consider your resources.

8 0
3 years ago
Having crew members ___ to clarify what they have heard is one way to catch mistakes before they happen.
Sergeeva-Olga [200]

Having crew members repeat back instructions to clarify what they have heard is one way to catch mistakes before they happen.

In our day-to-day life, we make our best decisions when we gather a lot of information. If we take the case of wildland fire fighting, we should be situationally aware to face the threat. We should know what’s going on around us—and should immediately share vital information about hazards with our supervisor and crew members in order to adopt safety measures and avoid mistakes. Situational awareness does not maintain an “off switch” when we are working near a fire.

It is somehow tempting to focus on what will be in front of us if we have got a specific task, but clarify to not forget to look up once in a while as there will be a lot going on over our head. When we look up we may encounter any number of potential hazards.

Learn to know more about crew members with the equipment or tasks they handle on

brainly.com/question/21153861

#SPJ4

3 0
2 years ago
Which economic indicator describes the process of generally declining prices? A. inflation B. deflation C. gross domestic produc
abruzzese [7]
The correct answer is B. Deflation is the reduction of prices.
4 0
3 years ago
Read 2 more answers
Other questions:
  • Write a couple of sentences describing the Tuscarora tribe.
    10·1 answer
  • Question 1 of 10
    14·1 answer
  • How to start off a thesis statment?
    15·2 answers
  • In his practice, dr. howard uses the idea that because actions are learned, they can also be unlearned through classical and ope
    9·1 answer
  • A political ideology that emphasizes freedom and voluntary association with small government is known as
    14·1 answer
  • What would GOC have done to prepare Collins for his assignment in the U.S.? Outline an action plan for companies to use in prepa
    6·1 answer
  • How is the term “universal suffrage” important to American Citizens?
    5·1 answer
  • 25 POINTS!!!
    12·2 answers
  • Which religion is...
    12·2 answers
  • In the twentieth century, the _____ perspective led to eugenic sterilization as a medical treatment of abnormal psychological fu
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!