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
Can someone help me on this question plz is it truth or false ????
brilliants [131]

Answer:

true

Explanation:

4 0
3 years ago
Changes in price and demand in which natural resource would have the BIGGEST impact on Australia's economy?
bonufazy [111]
Iron ore. It is used to create steel, and of the top three iron ore companies in the world two are in Australia.
7 0
3 years ago
Use the drop-down menu to complete the sentence.
777dan777 [17]

Answer:

Fedaral

Explanation:

3 0
3 years ago
Read 2 more answers
Which of the following applies to the Kirby-Bauer test? Select all that apply.
Tatiana [17]

Answer:

2. Bacteria that have a zone of inhibition are considered susceptible to the tested drug.

3. Bacteria that lack a zone of inhibition are resistant to the tested drug.

4. This test determines if a bacterium is resistant to a specific antibacterial drug.

Explanation:

The Kirby-Bauer test is a technique used in laboratories to assess the sensitivity of bacteria to antibiotics. This is one of the most reliable sensitivity tests in the world and is used in several areas such as health, agriculture, zoology, among others.

The test is done by applying antibiotic discs to a petri dish containing culture medium and a growing bacterium. When the bacterium grows inside the plate, it is observed whether the antibiotic discs were able to cause zones of inhibition of this growth.

Bacteria that do not have zones of inhibition are considered resistant to antibiotics, whereas bacteria that have zones of inhibition are considered susceptible.

7 0
3 years ago
What were the results of Japan's attack on China? How did these actions concern<br> Americans?
nevsk [136]

Answer:

The eight-year Japanese invasion caused tremendous damage to China in terms of civilian and military casualties and property losses. More importantly, even seven decades after the end of the war, the two countries have not reached any reconciliation.The United States responded to this growing threat by temporarily halting negotiations with Japanese diplomats, instituting a full embargo on exports to Japan, freezing Japanese assets in U.S. banks, and sending supplies into China along the Burma Road.

8 0
3 years ago
Other questions:
  • Strong language often means? A)weak feelings B)shared knowledge C)strong feelings D)risk-taking?
    15·1 answer
  • True or false ? Cost-plus regulation allows natural monopolies to earn zero economic profit.
    9·1 answer
  • What are the features of a hurricane?
    10·1 answer
  • Who is john locked? this is for world history i need help
    8·1 answer
  • Children gain control of their
    6·1 answer
  • A woman with cardiac disease has come to the office for prenatal counseling. According to the functional classification system d
    5·1 answer
  • Examine this map. Which region was the second to industrialize following the industrial revolution?
    15·2 answers
  • What different systems of government did Sparta and Athens have?
    14·1 answer
  • What type of work is done by the MBBS doctor<br>​
    11·2 answers
  • is the decrease in response to a stimulus that occurs after repeated presentations of the same stimulus, whereas ________Blank i
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!