DUE DATE: | 5:00pm Tuesday 15 January 2002 (extension announcement) |
---|---|
WEIGHT: | 10% |
SUBMISSION NAME: | comp2004s.a1 |
MARKING TYPE: | automated testing and hand marking |
TASK: | Write a program to convert integers to Roman numerals |
Symbol | Value |
---|---|
I | 1 |
V | 5 |
X | 10 |
L | 50 |
C | 100 |
D | 500 |
M | 1000 |
Integer | Roman numeral |
---|---|
1 | I |
2 | II |
3 | III |
4 | IV |
5 | V |
6 | VI |
7 | VII |
8 | VIII |
9 | IX |
Integer | Roman numeral |
---|---|
10 | X |
20 | XX |
30 | XXX |
40 | XL |
50 | L |
60 | LX |
70 | LXX |
80 | LXXX |
90 | XC |
Symbol | Value |
---|---|
I | 1 |
V | 5 |
X | 10 |
L | 50 |
C | 100 |
D | 500 |
M | 1000 |
K | 5000 |
P | 10000 |
g++ -Wall -g -o roman roman.cc