Roman Numerals In ancient Rome* they represented numbers in a different way to that which we currently use. They used letters rather than the more familiar Arabic based numerals. *You can still see them used in some places today e.g. in copyright notices and King’s and Queen’s names (e.g. Henry VIII; Elizabeth II) etc. The system used seven letters: I=1, V=5, X=10, L=50, C=100, D=500 and M=1000 and you wrote numbers by placing letters together (largest on the left) and adding up their values So following this rule MCL would be 1000 + 100 + 50 = 1150 Unfortunately the system has some other restrictions and rules Rules 1) If a smaller number comes after a bigger number add them together ‐ as we saw above 2) You can’t put more than three letters together‐ so III is alright but IIII is not 3) If a low value letter is before a high value letter you subtract the low value from the high Examples XC is 100 ‐10 = 90 IV is 5 ‐1 = 4 IX is 10 – 1 = 9 There are restrictions You can only subtract one letter ‐ so IV is alright bit IIV is not You can only subtract C, X and I ‐ not M, D, L or V The bigger number cannot be more than 10 times the smaller number – IX (9) is allowed to IC is not To help you, the table above shows the numbers from 1 to 100. Your task is to write a program which will display the Roman Numerals for any number (1 to 9999) that a user types in Outcomes You should provide the following outcomes in printed or electronic form A specification stating what your program will do A flowchart describing the system An annotated/commented program listing of the system Test results (purpose, input, output) showing how your system fulfils the requirements Note: ‐ This problem is unlikely to be sufficiently complex for use in an externally examined assessment. Zwizih.com 2015 (Creative Commons CC BY‐NC 4.0 )
© Copyright 2026 Paperzz