Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use STDIN and STDOUT for the input and output. Submit your test input files to enable quick grading. (PLEASE NOTE THAT YOUR TEST INPUT FILES

Use STDIN and STDOUT for the input and output.

Submit your test input files to enable quick grading.

(PLEASE NOTE THAT YOUR TEST INPUT FILES SHOULD HAVE THE .txt FILE EXTENSION.)

IN C LANGUAGE

image text in transcribed

Roman Numerals Filename: ROMAN Roman numerals are an ancient numbering system. If you are unfamiliar with roman numerals, refer to the sheet at the back of the problem set. The Problem: Add two roman numerals, expressing the result in roman numerals. The Input: Several pairs of roman numerals. Only the capital letters I, V, X, L, C, D and M will be used. Each roman numeral will be on a separate line, starting in column one. The roman numerals and their sums are guaranteed to be within the range of 1 to 3999, inclusive. The Output: For each pair of roman numerals, print the sum, expressed in roman numerals. (Capital letters only, please.) Sample Input: MI VI XXIII XXVII MCMLXXXIV DXIV Sample Output: IX MMCDXCVIII Roman Numerals Filename: ROMAN Roman numerals are an ancient numbering system. If you are unfamiliar with roman numerals, refer to the sheet at the back of the problem set. The Problem: Add two roman numerals, expressing the result in roman numerals. The Input: Several pairs of roman numerals. Only the capital letters I, V, X, L, C, D and M will be used. Each roman numeral will be on a separate line, starting in column one. The roman numerals and their sums are guaranteed to be within the range of 1 to 3999, inclusive. The Output: For each pair of roman numerals, print the sum, expressed in roman numerals. (Capital letters only, please.) Sample Input: MI VI XXIII XXVII MCMLXXXIV DXIV Sample Output: IX MMCDXCV

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions