Question
HOMEWORK ROMAN NUMBERS Your program should: Display a friendly greeting to the user. Prompt the user for a string (either a decimal number or a
HOMEWORK ROMAN NUMBERS
Your program should:
Display a friendly greeting to the user.
Prompt the user for a string (either a decimal number or a Roman number)
Accept that string.
If the value entered is 0 or O, state the number of values converted and exit the program.
Identify the type of number entered (Decimal or Roman).
Test the string to ensure that it adheres to the required format.
If the string does not adhere to the appropriate format, display a message explaining that the user should more carefully read the specifications and exit.
Convert the input string to the desired output string by invoking a function.
Display the appropriately-formatted output.
Display the prompt again.
Your program must include these four functions, with these prototypes:
bool isValidDecimalNumber(string s);
bool isValidRomanNumber(string s);
string convertRomanToDecimal(string s);
string convertDecimalToRoman(string s);
Please I need the hold code. Thanks.
"C++ programming"
Note: Roman Numbers can be entered in upper and/or lower case.
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