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

Algol the Sun Alpha Centauri Polaris the Big Dipper which is a binary star
Document 6 …Spanish administrators established two main centers of authority in the Americas—Mexico (which they called New Spain) and Peru (known as New Cas
A dozen eggs costs $1.29. Find the cost for 4 eggs.
Which answer is correctly punctuated? Mexican food in my opinion is the most flavorful. Mexican food, in my opinion, is the most flavorful. Mexican food in
What is ethical monotheism and why is it important?
What was Operation Overlord?
Define and give an example of each: one party system, two party system, multipary system.
How did Jean Baptiste Colbert intend to stimulate economic growth in France?
Which color of light has a wavelength of 5.0 × 10^–7 meter in air? (1) blue (3) orange (2) green (4) violet
How many grams in a kg