Question: C language Course: 201 809 CSC 1 : y Reapl Interactive prog Deter x C! ileap.csc.uvc.ca/contest/6/problem/MP3 eap Home Practice AssignmentsStatus About Interactive program Description Complete

C language
 C language Course: 201 809 CSC 1 : y Reapl Interactive
prog Deter x C! ileap.csc.uvc.ca/contest/6/problem/MP3 eap Home Practice AssignmentsStatus About Interactive program

Course: 201 809 CSC 1 : y Reapl Interactive prog Deter x C! ileap.csc.uvc.ca/contest/6/problem/MP3 eap Home Practice AssignmentsStatus About Interactive program Description Complete the C function interactiveRoman as a third step in the quest to convert integers from Arabic numerals (e.g. 17) to Roman numerals (e.g. XVI) interactively For the purpose of this assignment, the definition of Roman numerals will be equivalent to the Wikipedia article on Roman numerals (http://en.wikipedia.or /wiki/Roman_ numerals). Note that your program is not required to use the subtractive notation described in the article (so, for example, the number 4 will be represented by "IlI, not IV"). Note you only have to consider numbers in the range from 1 to 4999. MMMMDCCCCXXXXXVilI represents 4999. Input The input may consist of several lines, as follows: the first line contains an integer number n that indicates how many test cases there are. The remaining n lines contain one integer number (any integer number). Output For each test case, your program must output the corresponding Roman numeral. Each Roman numeral must be in a separate line.If the test case is 0, yo ur program must print the message you entered o to exit_bye and exit immediately, It the test case is less than 1 or more than 499, your must print th e message Illegal input: must be in range 1, and 4999 or e for_exit and continue with the other test cases, in Sample Input 1 Sample Output 1 Illegal input: must be_ in range 1 and 4999 or e for exit You entered 0 to exit bye 10 654123

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!