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

Hi the first picture is the question the second picture is my code I am trying t

ID: 3906588 • Letter: H

Question

Hi the first picture is the question the second picture is my code I am trying to get some help in figuring out why my output is blank?

4. 30 points Program A Implement binary exponentiation to compute a" mod m You may not use any native code, library, or tool to do so (though you may use them to verify your answers). You may assume that a and m will be small (representable by a 32-bit signed integer), but n may be arbitrarily large. You may use a multi-precision library to represent n and perform basic operations on it, but you may not use other functionality provided by the library Your program will read in a, m, n as command line arguments (in that order) and will output the result to the standard output Name your test case files . input001.txt output001.txt Page 4 of6 CSCE 310 Assignment 2 Summer 2018 input002.txt output002.txt respectively. The content of the input files will be the three command line arguments, all on one line.

Explanation / Answer

Your write entire code, that is correct, but you didn't call main function...

at the end you have to write following statements:

if __name__ == '__main__":

main()

Let me know if you have any clarifications or doubts. Thank you...

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