Nrite a program that accepts integer as input and display the equivalent roman numeral and vice-versa. The program should be written in OOP. SAMPLE GUIDE 1 2 3 45 6 7 IV v VI 8 9 Ones II II VII VI IX Tens XX XXX XL L LX LXX LXXX XC Hundreds CC CcC C DcC CD D DCCC см

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 8PP: (Statistical) In many statistical analysis programs, data values considerably outside the range of...
icon
Related questions
Question
Machine Problem 3
Write a program that accepts integer as input and display the equivalent roman
numeral and vice-versa. The program should be written in OOP.
SAMPLE GUIDE
1 2 3 4 5 6 7
8 9
IV v VI VII
XXX XL L LX LXX
CC CcC CD
Ones
II
VIII
IX
Tens
XX
LXXX
XC
Hundreds
D DC DCC DCCC
CM
Thousands
M
MM
Transcribed Image Text:Machine Problem 3 Write a program that accepts integer as input and display the equivalent roman numeral and vice-versa. The program should be written in OOP. SAMPLE GUIDE 1 2 3 4 5 6 7 8 9 IV v VI VII XXX XL L LX LXX CC CcC CD Ones II VIII IX Tens XX LXXX XC Hundreds D DC DCC DCCC CM Thousands M MM
TEST DATA
MENU
1. convert an integer to a roman numeral
2. convert a roman numeral to an integer
3. exit
Enter your choice:1
Enter Integer - 1
Output in Roman numerals is: I
Enterlnteger - 3000
Output in Roman Numberals is MMM
MAX VALUE IS 5000, should only accept whole number value. provide the
necessary error handling.
Enter your choice:2
Enter roman numeral - MMM
Output in Integer is - 3000
Enter roman numberals - I
Output in Integer is - 1
The conversion should accept uppercase and lowercase input.
After the output, the program should return to the menu choices.
Transcribed Image Text:TEST DATA MENU 1. convert an integer to a roman numeral 2. convert a roman numeral to an integer 3. exit Enter your choice:1 Enter Integer - 1 Output in Roman numerals is: I Enterlnteger - 3000 Output in Roman Numberals is MMM MAX VALUE IS 5000, should only accept whole number value. provide the necessary error handling. Enter your choice:2 Enter roman numeral - MMM Output in Integer is - 3000 Enter roman numberals - I Output in Integer is - 1 The conversion should accept uppercase and lowercase input. After the output, the program should return to the menu choices.
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,