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
What is a super sentence of both
Andreyy89
Jack and Jill both over to have fun and lots of adventures but, what they love most is eachother.
7 0
2 years ago
List three problems the confederation government faced in its relations with others countries
s2008m [1.1K]
-Control trade
-Imposes taxes so they would have money to pay France
They could not control where people lived
6 0
3 years ago
Read 2 more answers
What distinguished Dutch and British trading efforts in the Indian Ocean area from those of their Portuguese competitors?
GrogVix [38]

Answer:

Both used private trading companies to create their empires.

Explanation:

  • The centers of the Portuguese empire was formed in 1510 and was captured by the Arab at goa, as an island harbor halfway up the western Indian coasts which was the Portuguese colony for nearly 460 years.  
  • Most of the Portuguese shipments of the pepper and the ginger that originated from the Malabar Coast of the India. The dutch official formed the West India Company and was a mega-corporation formed by them in the 17th century with the dutch had a monopoly and conducted activity of the inter Asia trade.  
  • And it was chartered company to trade and it used to import 50 to 80% of the textiles. While the company of the British the east India company set up in 1657 and was the brainchild of the dutch with the company acquiring the trading ports and safeguarding its territories.
4 0
3 years ago
During her reign, empress theodora prompted\increased the rights of which group of people.
vagabundo [1.1K]

The correct answer to this open question is the following.

During her reign, Empress Theodora prompted\increased the rights of women.

Empress Theodora married Justinian, Emperor of the Byzantine Empire, one of the most powerful empires after the fallen of the West Roman Empire. She was the most important advisor to his husband and a supporter of the rights of women. She counseled his husband to create legislation that protected women's rights and prohibited the trafficking of girls.

7 0
3 years ago
Responsible factor of rapid population growth​
Scilla [17]

Answer:

Several factors are responsible for the rapid growth: a drop in mortality rates, a young population, improved standards of living, and attitudes and practices which favor high fertility.

Explanation:

Hope this helps!!!

8 0
2 years ago
Other questions:
  • Which of the following best states the purpose of a government subsidy?
    5·1 answer
  • What is the primary goal of NAFTA? to eliminate barriers to trade and investment between Canada, Mexico and the U.S. to ensure m
    13·2 answers
  • What are some hardships faced by the Danish people because of the war?
    10·1 answer
  • Recognition memory is better developed than is recall memory in early childhood. the ability to reproduce knowledge from memory.
    6·1 answer
  • What was the purpose of the ghazu in the years before islam ?
    9·2 answers
  • What happens to the density of a population due to mortality and emigration? Select one of the options below as your answer:
    7·2 answers
  • While reading her AP Psychology textbook, Sara scans the section headings, noticing how the units are organized, and forms quest
    13·2 answers
  • The head of state of the Canadian government is the Question 4 options: President. Prime Minister. King of Canada. Queen of Engl
    9·2 answers
  • I just need help with number 7 please
    5·2 answers
  • Some of the common characteristics of the<br> governments of the world
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!