Question: Introduction - The numeric system represented by Roman numerals originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into

 Introduction - "The numeric system represented by Roman numerals originated in

Introduction - "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 VX LC D M Value 5 10 50 100 500 1,000 The use of Roman numerals continued long after the decline of the Roman Empire. From the 14th century on, Roman numerals began to be replaced in most contexts by the more convenient Hindu-Arabic numerals; however, this process was gradual, and the use of Roman numerals persists in some minor applications to this day 5si Write a program that converts a number entered in Roman numerals to decimal. Also the program can add any two roman numbers and display the result in Roman numerals. Your program should consist of a class, say, romanType. Develop UML diagram for this class. An object of type romanType should do the following: 1. Store the number as a Roman numeral. 2. Convert and store the number into decimal form. 3. Add two roman numbers without converting them to decimal and then display the result in Roman format.[Hint: use the help link to solve this!] 4. Print the number as a Roman numerals or decimal number as requested by user. 5. Test your program using the following numerals: MCXIV, CCCLIX, MDCLXVI, CCCLXIX+ DCCCXLV

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!