Question: Please use MARIESIM.java, no other languages or IDE . -MARIE -program needs to take any input value using input instructions Main question: Exponent (Iterative algorithm)
Please use MARIESIM.java, no other languages or IDE.
-MARIE
-program needs to take any input value using input instructions
Main question:

Exponent (Iterative algorithm) (20 pts) - Get a user input of a positive integer number: A - Get a user input of zero or a positive integer number: B - Calculate C is an exponent of A to the power of B(C=AB) - Print C Pseudo code (may have a bug. Please make sure the correctness) Func Main (): Get A and B C=1 While B>0 C=Mult(C,A) B-- Print C End Main Func Mult(E, F) M=0 While E>0 M=M+F E Return M End Mult Test cases: Exponent (Iterative algorithm) (20 pts) - Get a user input of a positive integer number: A - Get a user input of zero or a positive integer number: B - Calculate C is an exponent of A to the power of B(C=AB) - Print C Pseudo code (may have a bug. Please make sure the correctness) Func Main (): Get A and B C=1 While B>0 C=Mult(C,A) B-- Print C End Main Func Mult(E, F) M=0 While E>0 M=M+F E Return M End Mult Test cases
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
