Prompt the user for a number and an exponent computer the


Prompt the user for a number and an exponent. Computer the value of the given number (the base) raised to the power of the exponent. (For example, the number two raised to the fourth power is 16.) Their suggested correct answer: Get base Get exponent Set i to 1 Set answer to 1 While (i <= exponent) Set answer = answer x base Add 1 to i End loop Print answer Ok my problem... Set answer = answer x base if answer is 1 then we get base as answer every time in this loop for all values of i, as long as, i is equal to or smaller than 1. This does not express an exponential situation or value as asked for in the prompt. What am I not understanding or getting here?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Prompt the user for a number and an exponent computer the
Reference No:- TGS0570933

Expected delivery within 24 Hours