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
Why people love burgers?
krok68 [10]

The first and most obvious answer to the question of why we're so obsessed with burgers is: burgers are cheap. ... It's not just that burgers are cheap, it's that they're easy to eat. Because the meat is ground up, you don't have to do much chewing. Because it's served on a bun, it's easy to eat.

5 0
3 years ago
Which of these statements is true regarding the Presidency of John Quincy Adams?
Yanka [14]

Answer:

C

Explanation:

4 0
2 years ago
A colleague complains about anxiety and exhaustion, makes coworkers uncomfortable by asking excessive questions about classified
Yakvenalex [24]

Answer: The employee makes <u><em>3 or more threat indicators.</em></u> I chose 3 or more since I am using anxiety and exhaustion as two separate indicators.

Explanation:

When another colleague starts asking about classified projects it should always be a red flag. They may be trying to get information and will use small talk to get the information. Since the colleague is asking excessively, this should be noted.

Talking about any kind of debt should be a red flag also. If the colleague is having financial trouble, this could indicate they are doing other things to get money, such as giving competitors information.

When a colleague speaks about and complains about being anxious and being tired/exhausted, this too should raise a red flag when combined with the rest of his behavior. The colleague may be nervous he will be caught and not sleeping because he is worried about his job and not getting the information needed.

This colleague's behavior needs to be marked as suspicious and turned over to the company security or management to be investigated for an insider threat.

5 0
3 years ago
Who was appointed postmaster general by the Second Continental Congress
nevsk [136]

Benjamin Franklin was appointed by the Continental Congress as the first Postmaster General in 1775, serving just over 15 months.

6 0
3 years ago
Read 2 more answers
When Abernathy went to a psychologist for the first time, the clinician asked him what the date was, what year it was, and where
masha68 [24]

Answer:

Sensorium

Explanation:

Sensorium is thinking of an organism that should be considered as whole like the sensation seat in which it experiences and analyzes the environment in which it lives

In the given situation it is mentioned that the Abernathy went to a psychologist for the first time so the clinician asks various questions like date, year

So this type of questions represents the sensorium and hence, the same is to be considered

7 0
3 years ago
Other questions:
  • Explain how earnings gained from a nonprofit organization are dispersed. How is this different from. For-profit organization?
    13·1 answer
  • According to bandura, the idea that the environment, behaviors, and cognitive factors all play a mutual role in the development
    14·1 answer
  • Mechanisms such as direct criticism, ridicule, ostracism, desertion, or physical punishment are considered what form of social c
    14·1 answer
  • How did Paul Revere stir up anti-British sentiment among his fellow colonist?
    10·1 answer
  • Damien has been unable to sleep for the past few weeks. he wakes up in the middle of the night and cannot go back to sleep. on c
    15·1 answer
  • Which psychological research method uses a holistic approach to describe a phenomenon in a natural setting? Qualitative research
    11·1 answer
  • Selecı all the correct answers.
    8·1 answer
  • How do the characteristics of religion combine to make a living, dynamic tradition?
    11·1 answer
  • During The Cold War, The United States Foreign Policy Of Containment Consisted Of
    13·1 answer
  • In the absence of statutory protection, a procedure performed despite and individual's objection to consenting to a procedure be
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!