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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!