Answer:
Following are the code block in the Java Programming Language.
//define recursive function
public static long exponentiation(long x, int n) {
//check the integer variable is equal to the 0.
if (x == 0) {
//then, return 1
return 1;
}
//Otherwise, set else
else {
//set long data type variable
long q = exponentiation(x, n/2);
q *= q;
//check if the remainder is 1
if (n % 2 == 1) {
q *= x;
}
//return the variable
return q;
}
}
Explanation:
<u>Following are the description of the code block</u>.
- Firstly, we define the long data type recursive function.
- Then, set the if conditional statement and return the value 1.
- Otherwise, set the long data type variable 'q' that sore the output of the recursive function.
- Set the if conditional statement and check that the remainder is 1 and return the variable 'q'.
<h3>Master File :-</h3>
- Master files contain descriptive data, such as name and address, as well as summary information, such as amount due and year-to-date sales.
<h3>Transaction File :-</h3>
- Fast performance with a rapid response is critical. Organisations rely heavily on their TPS with failure possibly stopping business.
<h3>Reference File :-</h3>
- Information in one drawing can be overlaid on a different drawing, eliminating the need to redraw information.
- Proper use of reference files will result in significant time savings and greater coordination of drawings.
Explanation:
<h3>Hope it helps you!</h3>