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

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!