Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Did the decisions need to be made, or had they already been made?

Answered: 1 week ago

Question

When there was controversy, was it clear who had the final say?

Answered: 1 week ago