Question: must be in cpp. thank you Write a program that converts a number entered in Roman numerals to a positive integer. Your program should consist
must be in cpp. thank you

Write a program that converts a number entered in Roman numerals to a positive integer. Your program should consist of a class, romanType. An object of type romanType should do the following: a. Store the number as a Roman numeral. b. Convert and store the number as a positive integer C. Print the number as a Roman numeral or positive integer as requested by the user The integer values of Roman numerals are: 1000 D 500 ? 100 ?50 x 10 V 5 This is your first experience with Classes. Will be looking for: Documentation (-5) Correctness of approach, ie, where your functions are (main vs. class), where your inputs/outputs are (main vs. class), etc. This part is worth 50 points. You should study the chapter and course notes before attempting to create your first class and implementation using that class. In particular: Include a constructor (-3) There are to be no inputs or outputs (cins or couts) within any functions of the class. Use your main for that and pass your parameters appropriately to your class functions (-8) - Private vs Public members of the class (-4) - Comect conversion from Roman to Decimal (-10) Any other oddities or inefficiencies in coding or approach (up to -8) Again, as a hint... input and output of data should be in main. Let your class do the work through parameter passing and functions that return values. Test Data: MMXVII 2017, MCMLXXIV 1974
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
