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
Zolol [24]
3 years ago
13

Write the definition of a function powerTo which recieves two parameters, a double and an integer. If the second parameter is po

sitive, the function returns the value of the first parameter raised to the power of the second. Otherwise, the function returns 0.
Computers and Technology
1 answer:
FrozenT [24]3 years ago
5 0

Answer:

Following is the definition of the required function:

def powerTo( double first, int second);

if second > 0;

double result = pow(first,second);

return result;

else

return 0;

Explanation:

The explanation for above code is as follows:

  • A function named powerTo is defined, having two arguments with data type double and integer respectively.
  • A if condition is applied that checks the second parameter.
  • If the the condition: second > 0 gets true, a value is returned which is equal to first parameter raised to the second.
  • If the condition is if bracket gets false, 0 is returned as a result.

i hope it will help you!

You might be interested in
Sarah is a busy real estate agent with a growing clientele. She is looking to purchase a new computer and software so that she c
lyudmila [28]

Answer:

ASP.NET ,C#.NET,SQLServer,HTML,JavaScript

Explanation:

To build any web based application we need one presentation layer(HTML)

and for client side scripting JavaScript.

ServerSide ASP.NET Technology  and C#.NET to write your business layer

Sql programming to store data in sql server

5 0
3 years ago
When operating a user interacts with
forsale [732]

Answer:

The operating system

Explanation:

8 0
3 years ago
_______ is the process of checking data for validity and completeness
timurjin [86]
Data Editing is the answer
7 0
3 years ago
Answer is A, do not believe the D answer;What are additional details that can be viewed in an Outlook task? Check all that apply
sergiy2304 [10]

Answer:

A

C

D

E

F

Explanation:

got it right on edg

3 0
3 years ago
Read 2 more answers
What should be done on a tablet in order for that tablet to cease all network connections?
boyakko [2]

<em>To cease all network connections on a tablet, we could do: </em><em>Turn on Airplane Mode. </em>

<em>Airplane Mode (sometimes referred to as Flight mode) is a feature of tablets, laptops and cellphones that terminates radio-frequency signals which could be transmitting from devices to the internet and communication signal source.  This includes, bluetooth, wireless internet and data connection. </em>

5 0
3 years ago
Other questions:
  • A brick weighs 26 N. Measured underwater, it weighs 11 N.
    10·1 answer
  • Which word in brackets is most opposite to the word in capitals? PROSCRIBE (allow, stifle, promote, verify)​
    14·2 answers
  • I need help!!!!
    13·2 answers
  • Write a WHILE loop that lets the user enter a number.
    14·1 answer
  • What are the components that make a computer work?
    12·1 answer
  • You want to substitute one word with another throughout your
    13·1 answer
  • A character that <br>is raised and smaller above the baseline is called​
    6·1 answer
  • If you want to share information with individuals who are internal to your organization, which type of network would you want to
    6·1 answer
  • Why is it important to follow a consistent naming convention for variables?
    7·1 answer
  • Help me pleaseeee!
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!