Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How can i express exponential power without using ^ or ** or any other operators

ID: 3623193 • Letter: H

Question

How can i express exponential power without using ^ or ** or any other operators.. Just simple maths.. I've been given an iterative pseudo code to write.. Where M=[p* i *(i+1)^n]
where p,i,n would be provided from the user... I want to know that how can we write (1+i)^n in loop form.
for example:
(i) if n=2 then automatically computer calculates (i+1)(i+1) then stops
ii) if n=3 then automatically computer calculates (i+1)(i+1)(i+1) then stops
(iii) if n=10 then automatically computer multiplies (i+1) 10 times by itself then stops
Please please solve my problem i would be really thankful to you.. We are supposed to write pseudo code using READ,WRITE,IF,ELSE,THEN,ELSE IF,END functions.. Basically its an iterative algorithm... But i dont know how to express (i+1)^n in basic maths... Please help me... That would mean alot to me... THanks in advance:)

Explanation / Answer

please rate - thanks

read i

read n

read p

power=1

loop:

         power=power*(i+1)

         n=n-1

        if n>0   go to loop:

M=p*i*power

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote