subject

Write a mips assembly language program that a. prompts the user for a zip code (as a 5-digits unsigned integer, or 0) with the string "give me your zip code (0 to stop): ". no error checking is necessary, assuming that the user will give correct numbers. b. if the input is 0 stops c. otherwise, calculates the sum of all digits, then print out the result with the leading string "the sum of all digits in your zip code is: " d. repeats from a. for example, if the user gave the input 75081 the program will print out "the sum of all digits in your zip code is: 21"// the section above has already been answered, use this to do the bold section below. rewrite the mips program in hw#3 to perform the same function, but implement the task of calculating the sum of digits as a function (subroutine). implement two version of this functions, one is iterative and the other is recursive. the main program should call each of these two functions to calculate and display the sum after the user has input a zip code.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
You know the right answer?
Write a mips assembly language program that a. prompts the user for a zip code (as a 5-digits unsign...
Questions
question
Computers and Technology, 24.09.2021 14:00
question
Mathematics, 24.09.2021 14:00
question
Mathematics, 24.09.2021 14:00
Questions on the website: 13722367