
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Program Assignment Number Four CSC 320 Computer Architecture Spring Semester 2008 Due February 26, 2008 Write a MIPS program which will prompt the user to input a positive integer value which is to be raised to a power. The user should then be prompted to input the power to which the value should be raised. Your program should raise the first value to the power of the second value. Your program must contain: The usual required main function. A separate function to prompt for and input the required values. A separate function to recursively perform the required operation A separate function to print the result. The output should be “ X raised to the Y power is Z”.