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:

Please use MARIESIM.java, no other languages or IDE. -MARIE -program needs to

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!