Question: IN C++, write code to: Objectives - Review object oriented program and apply software engineering concept (Implement three files) Roman converter Program - (roman.h; romanlmp.cpp;

IN C++, write code to:

IN C++, write code to: Objectives - Review object oriented program and

Objectives - Review object oriented program and apply software engineering concept (Implement three files) Roman converter Program - (roman.h; romanlmp.cpp; romanDriver.cpp) Write a program that converts a number entered in Roman numerals to decimal form. You program should consist of a class named romanType. An object of romanType should do the following: Store the number as a Roman numeral. . Convert and store the number into decimal form. Print the number as a Roman numeral or decimal number as requested by the user. The decimal values of the roman numerals are: M 1000 D 500 100 L 50 10 V 5 1 Roman rules: - A larger numeral preceding a smaller numeral means addition, e.g. LX is 60 - A smaller numeral preceding a larger numeral means subtraction, e.g. XL is 40. Test your program using the following Roman numerals: MDCLXVI and MMMDCCXXIV Sample output: Enter a roman number: MDCLXVI The equivalent of the Roman numeral MDCLXVI is 1666 Try another number (y)? Y Enter a roman number: MMMDCCXXIV The equivalent of the Roman numeral MMMDCCXXIV is 3724 Try another number (y)? N Thank you

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!