Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions