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!
Answer:
The answer is described below
Explanation:
E safety means means protection of private information and personal safety when using the internet. E safety involve the protection of private information, passwords against identity theft or property theft. A persons private information, passwords can be gotten through the use of phishing or malwares.
Also, the use of internet has exposed people to cyber bullying(i.e abuse of an individual), stalking, engaging underage children into sexual relationships and sextortion.
E safety help protect children from harmful content and services as those listed.
The part of a computing device that is the biggest power consumer is;
Central Processing Unit
<h3>Central Processing Unit</h3>
The part of a computing device that cosnumes the most power is called the Central Processing Unit (CPU). This is due to the following reasons;
- The CPU consists of motherboard and battery that draws power from the socket.
- The Mother board is equipped with logic gates that are used to implement logic in the computer.
- The Logic gates are voltage signals that signify the binary information that are fed into the system.
Read more about Central Processing Unit (CPU) at; brainly.com/question/4558917