Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Write a method IntegerPower(base, exponent) that returns the value of baseexponent For example, IntegerPower(3, 4) = 3 * 3 * 3 * 3.

Write a method IntegerPower(base, exponent) that returns the value ofbaseexponentFor example, IntegerPower(3, 4) = 3 * 3 * 3 * 3. Assume that exponent is a positive integerand that base is an integer. Method IntegerPower should use a For/Next loop or While loop tocontrol the calculation. Do not use any Math library methods or the exponentiation operator, ^. Incorporatethis method into a Windows application that reads integer values from TextBoxes for baseand exponent from the user and performs the calculation by calling method IntegerPower.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question