Question: This program is for the conversion of Roman Numerals. You will need to create a menu driven program such as: Convert a Roman Numeral to

This program is for the conversion of Roman Numerals.
You will need to create a menu driven program such as:
Convert a Roman Numeral to an Integer
Convert an Integer to a Roman Numeral
Exit the Program
Menu Choice 1
You will need to write a function that will take as input from the user a c -string that is a roman numeral. The program should then have a function that validates that the user entered valid characters either upper or lower case. (If the user does not enter a valid roman numeral you will need to display an error message and prompt for them to re-enter the roman numeral.) Then you will need a function that will convert the valid input to uppercase prior to being passed to a function that converts it to an integer and displays the answer.
Menu Choice 2
You will need a function that takes from the user an integer. You will need to validate the users input to make sure it has a value greater than zero and a value smaller than the largest roman numeral that can, be created based upon the rules. (If the user does not enter a valid roman numeral you will need to display an error message and prompt for them to re-enter the integer.) Then you will need a function that converts the integer to a proper roman numeral storing the result in a cstring.
Remember though this is trickier because IV is 4 not IIII.
Menu Choice 3
Lets the program end.
This program is for the conversion of Roman

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 Programming Questions!