Question
in C++ The numeric system represented by Roman numerals originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into
in C++
The numeric system represented by Roman numerals originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into the Late Middle Ages. Numbers in this system are represented by combinations of letters from the Latin alphabet. Roman numerals, as used today, are based on seven symbols: Symbol I V X L C D M Value 1 5 10 50 100 500 1000 Design and implement a class romanType so that an object of this class should do the following: Store the number as a Roman numeral; Convert and store the number as a positive integer; Print the number as a Roman numeral or positive integer according to the user selection. In the main function, you need to prompt the user to enter a roman number, create one object of the class romanType, and finally, test the member functions of the class using the following Roman numerals: MCXIV, CCCLIX, and MDCLXVI.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started