Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE ONLY C PROGRAMMING. DO NOT USE ARRAY. GET INPUT BY USING scanf ( ) . . . . HERE IS CODE....... . 1 0
PLEASE ONLY C PROGRAMMING.
DO NOT USE ARRAY. GET INPUT BY USING scanf
HERE IS CODE....... Roman numeral values will be input and converted into
their equivalent HinduArabic numeric values.
Input Roman numeral # : I
I
Input Roman numeral # : m
M
Input Roman numeral # : W
W Error last character was not valid!!!
Input Roman numeral # : vIi
VII
Input Roman numeral # : Iv
IV
Input Roman numeral # : DMXQX
DM Error last character was not valid!!!
Input Roman numeral # : mlxvi
MLXVI
Input Roman numeral # : MCMLIV
MCMLIV
Input Roman numeral # : MdMcMlMxMvMiM
MDMCMLMXMVMIM
Input Roman numeral # : MDMDCDCLCLXLXVXVIVIII
MDMDCDCLCLXLXVXVIVIII
PLEASE ONLY IN C PROGRAMM. SIMPLY USE CODE IN int mainvoid FUNCTION.
NOTE::: DO NOT USE ARRAY..... PLEASE...... ONLY IN C PROGRAMM.....REMEMBER THIS IS THE th TIME IM POSTING THE SAME QUESTION IF YOU USE ARRAY OR NOT PROGRAM IT IN C I WILL DISLIKE IT THANK YOU
THIS IS THE OUTPUT:::: AFTER RUNNING THE PROGRAM IT SHOULD MATCH THIS OUTPUT::::
Roman numeral values will be input and converted into
their equivalent HinduArabic numeric values.
Input Roman numeral # : I
I
Input Roman numeral # : m
M
Input Roman numeral # : W
W Error last character was not valid!!!
Input Roman numeral # : vIi
VII
Input Roman numeral # : Iv
IV
Input Roman numeral # : DMXQX
DM Error last character was not valid!!!
Input Roman numeral # : mlxvi
MLXVI
Input Roman numeral # : MCMLIV
MCMLIV
Input Roman numeral # : MdMcMlMxMvMiM
MDMCMLMXMVMIM
Input Roman numeral # : MDMDCDCLCLXLXVXVIVIII
MDMDCDCLCLXLXVXVIVIII
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