Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:00, aredwolf2017
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, Janznznz1121
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
image
Computers and Technology, 22.06.2019 21:50, dijaflame67
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, china236
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
Do you know the correct answer?
Write a mips assembly language program that a. prompts the user for a zip code (as a 5-digits unsign...

Questions in other subjects:

Konu
Mathematics, 12.11.2019 00:31
Konu
Mathematics, 12.11.2019 00:31