Starting from:
$30

$24

Homework 4: Solution

Write a MIPS code which involves three functions:

main
poly
pow
to compute the value of the polynomial given below for any value of x, as given by the

user.

 

Your program must pass arguments to functions such as poly and pow and get return values from these functions. The input to the program (which is x) is obtained from the user inside the main function. The final output must be printed in the main function.

More products