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 см

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education