sctenk2441 sctenk2441
  • 16-07-2021
  • Computers and Technology
contestada

Write a Python program that accepts a year written as a four-digit Arabic (ordinary) numeral and outputs the year written in Roman numerals.

Respuesta :

amaila1
amaila1 amaila1
  • 16-07-2021
Roman numerals are V for 5, X for 10, L for 50, C for 100, D for 500, and M for 1,000.
Recall that some numbers are formed by using a kind of subtraction of one Roman “digit”; for example, IV is 4 produced as V minus I, XL is 40, CM is 900, and so on.
A few sample years: MCM is 1900, MCML is 1950, MCMLX is 1960, MCMXL is 1940, MCMLXXXIX is 1989.
(Hints: Use division and mod.)

Assume the year is between 1000 and 3000.
Answer Link

Otras preguntas

will save or is saving which means better?
what is 5/8 -3/8 in simplest form
how can i solve for x: 64=16 x^2
Felix has 2 yards of ribbon. he needs 1/4 yard to make a bow. how many bows can he make?
The distance between Hadley and Greenville is 13 miles less than the distance between Parker and Greenville. Write two equations that compare the distance betwe
Use PEMDAS to simplify (order of operations) A+B+2A-3B
Sneakers cost $63, the sales tax rate is 7.5% what is the total cost if the sneakers to the nearest cent
The lines a and b intersect at point D. What is the value of z?
plz help!Select the best analogy. satis : lack :: A. unus : one B. tenuo : wait C. totus : whole D. impleo : empty
What are the coordinates for the outlier in the data? ( __ , __)