Question: Create program named CalculatePower.java. The program should implement the integer powering function, ie. pow (x, n)-x(x raised to n). The program reads the base (x)

Create program named CalculatePower.java. The program should implement the integer powering function, ie. pow (x, n)-x"(x raised to n). The program reads the base (x) and exponent (n) from the user. It uses the loop to calculate x". You are not allowed to use Math.pow0 function to do this task. Please find below a few sample outputs. Sample output: Power Function This program calculates x*n By Jiju Poovvancheri (A00000000) Please enter the base 10 Please enter the exponent 2 10A2 is 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
