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

Which of the following was a reason for entrance of the United States into World War I? A. The United States got pulled into the war through its alliance with
When reading a ____ language, we use our understanding of the richness of the language's vocabulary to extract the meaning. geopolitical formal natural
plz help and explain ty
Which is the best measure of central tendency for the type of data below–the mean, the median, or the mode? explain?
How does energy change from one form into another inside an animal?
best explained and correct answer gets brainliest
How many possible random combinations of chromosomes exist for the 23 human chromosomal pairs?
Which of these celestial bodies has a tail? a-asteroid b-comet c-moon d-planet
A slice of potato is placed in a hypertonic salt water solution. in a few hours, what would be the appearance of the potato slice?
if the measure of Angle 6 is 140 what is the measure of Angle1