You should not use the GetInt routine to read the input number. Instead, you should read the input as a string using GetStr. A typical interaction of the program is (user input is shown in bold):...


You should not use the GetInt routine to read the input number. Instead, you


should read the input as a string using GetStr. A typical interaction of the program is


(user input is shown in bold):


Please input a positive number (


41231/4 = 10307


Do you want to terminate the program (Y/N): Y


Remember that the decimal number is read as a string of digit characters. Therefore,


you will have to convert it to binary form to store internally. This conversion requires


multiplication by 10 (see Appendix A). We haven’t discussed multiplication instruction


yet (and you should not use it even if you are familiar with it). But there is a way of


doing multiplication by 10 using only the instructions discussed in this chapter. (If you


have done the s of this chapter, you already know how!)



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here