Question: Write a C program to interactively convert integers from Arabic numerals (e.g. 14) to Roman numerals (e.g. XIV). Your program should prompt the user to

 Write a C program to interactively convert integers from Arabic numerals(e.g. "14") to Roman numerals (e.g. "XIV"). Your program should prompt the

Write a C program to interactively convert integers from Arabic numerals (e.g. "14") to Roman numerals (e.g. "XIV"). Your program should prompt the user to enter a number between 1 and 4999 (inclusive), then print the representation of that number in Roman numerals. After each successful conversion, the program should prompt the user for another number, until the user enters and invalid number (less than 1 or greater than 4999) or enters any non-numerical data (such as "exit") A sample-run of a model solution is shown below. Text in black is the output of the program and text in blue is user input. Enter a number between 1 and 4999: 4 The value of 4 in Roman numerals is IV Enter a number between 1 and 4999: 33 The value of 33 in Roman numerals is XXXIII Enter a number between 1 and 4999: 61 The value of 61 in Roman numerals is LXI Enter a number between 1 and 4999: 123 The value of 123 in Roman numerals is CXXIII Enter a number between 1 and 4999: 789 The value of 789 in Roman numerals is DCCLXXXIX Enter a number between 1 and 4999: 652 The value of 652 in Roman numerals is DCLII Enter a number between 1 and 4999: 1234 The value of 1234 in Roman numerals is MCCXXXIV Enter a number between 1 and 4999: -1 Invalid value entered. Program will exit. For the purpose of this assignment, the definition of Roman numerals will be equivalent to the Wikipedia article on Roman numerals (http://en.wikipedia.org/wiki/Roman_numerals). Note that your program is required to use

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!