Problem:
Question 1: Write a function that will allow a user to calculate the power of any given number (xy where x is the base and y is the exponent) your program will simulate the pow(x,y) function provided by the cmath library of C++. Then use that function in your program where a user can enter the base (x) as either an integer or a double data-type but the exponent (y) should only be an integer data-type and then the value will be returned as an integer or double data-type. Allow the user to calculate the power of one or more numbers in a single execution.
Question 2: Programe to justify annotation and implementation of spring in abstract class in spring.
Could someone help to explain the answer of these questions.