When In Rome… One method for converting an Arabic number into a Roman number is to separately convert each digit (the units, tens, hundreds, and thousands positions) as shown:

1       9         8        4

M   CM   LXXX     IV

Write an algorithm that accepts as inputs any numeric values up to 3999, and outputs the corresponding Roman numbers.

a. Do this, if the number is entered digit by digit (least significant digits first, like 4 8 9 1).

b. Do this, if the number is entered digit by digit (most significant digits first, like 1 9 8 4).

c. Do this, if the number is entered all at once, as an integer, like 1984.

 

find the cost of your paper

The post Write an algorithm that accepts as inputs any numeric values up to 3999, and outputs the corresponding Roman numbers. appeared first on Best Custom Essay Writing Services | EssayBureau.com.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *