Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write a C++ program based on the instructions. Thank you!! Program description In this problem, you are to design and implement a Roman number
Please write a C++ program based on the instructions. Thank you!!
Program description In this problem, you are to design and implement a Roman number calculator Roman numerals, as used today, are based on seven symbols Numeral Value 10 50 100 500 1000 Roman numbers are formed by combining symbols and adding the values, so II is two (two ones) and XIII is thirteen (a ten and three ones). Because each numeral has a fixed value rather than representing multiples of ten, one hundred and so on, according to position, there is no need for "place keeping" zeroes, as in numbers like 207 or 1066; those numbers are written as CCVII (two hundreds, a five and two ones) and MLXVI (a thousand, a fifty, a ten, a five and a one). Symbols are placed from left to right in order of value, starting with the largest.2 The input Your program inputs two Roman numbers (in additive form) and an arithmetic operator, delimited by whitespace. The arithmetic operators your program should recognize in the input are +,-, *, /, and These should perform the C++ operations of integer addition, subtraction, multiplication, division, and modulus. The output Your program will print out the result of the operation as a Roman number in additive form. n.wikipedia.org/wiki/Roman numerals The subtractive Roman numeral notation commonly in use today (such as IV, meaning 4) was used only rarely during the time of the Roman Empire. For ease of calculations, the Romans preferred a purely additive notation in which a number was simply the sum of its digits (4 equals IIII, in this notation). Each number starts with the digit of highest value and ends with the digit of smallest value This is the notation used in this Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started