Answer:
Explanation:
The following code is written in Java. It creates the raiseToPower method that takes in two int parameters. It then uses recursion to calculate the value of the first parameter raised to the power of the second parameter. Three test cases have been provided in the main method of the program and the output can be seen in the attached image below.
class Brainly {
public static void main(String[] args) {
System.out.println("Base 5, Exponent 3: " + raiseToPower(5,3));
System.out.println("Base 2, Exponent 7: " + raiseToPower(2,7));
System.out.println("Base 5, Exponent 9: " + raiseToPower(5,9));
}
public static int raiseToPower(int base, int exponent) {
if (exponent == 0) {
return 1;
} else if (exponent == 1) {
return base;
} else {
return (base * raiseToPower(base, exponent-1));
}
}
}
Answer:
hash
Explanation:
it is called a <u>hash,</u><u> </u><u>a </u><u>map</u><u>,</u><u> </u><u>or </u><u>a </u><u>hasmap</u>
Answer:
a reverse chronological journaling site. a user-collaborated content site, typically text in nature
Explanation:
It is the website that is based on knowledge. It is the text based site that is also called structure content.
The most common example of Wiki is Wikipedia.
Answer:
Consistency
Explanation:
Making a website consistent helps people understand the goal and functions of a website, while also keeping the design the same the whole way through.