Answered step by step
Verified Expert Solution
Link Copied!

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........10 Roman numeral values will be input and converted into
their equivalent Hindu-Arabic numeric values.
Input Roman numeral # 1: I
I =1
Input Roman numeral # 2: m
M =1000
Input Roman numeral # 3: W
W Error - last character was not valid!!!
Input Roman numeral # 4: vIi
VII =7
Input Roman numeral # 5: Iv
IV =4
Input Roman numeral # 6: DM?XQX
DM? Error - last character was not valid!!!
Input Roman numeral # 7: mlxvi
MLXVI =1066
Input Roman numeral # 8: MCMLIV
MCMLIV =1954
Input Roman numeral # 9: MdMcMlMxMvMiM
MDMCMLMXMVMIM =6334
Input Roman numeral # 10: MDMDCDCLCLXLXVXVIVIII
MDMDCDCLCLXLXVXVIVIII =2667
PLEASE ONLY IN C PROGRAMM. SIMPLY USE CODE IN int main(void){} FUNCTION.
NOTE::: DO NOT USE ARRAY..... PLEASE...... ONLY IN C PROGRAMM.....REMEMBER THIS IS THE 10th TIME I'M 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::::
10 Roman numeral values will be input and converted into
their equivalent Hindu-Arabic numeric values.
Input Roman numeral # 1: I
I =1
Input Roman numeral # 2: m
M =1000
Input Roman numeral # 3: W
W Error - last character was not valid!!!
Input Roman numeral # 4: vIi
VII =7
Input Roman numeral # 5: Iv
IV =4
Input Roman numeral # 6: DM?XQX
DM? Error - last character was not valid!!!
Input Roman numeral # 7: mlxvi
MLXVI =1066
Input Roman numeral # 8: MCMLIV
MCMLIV =1954
Input Roman numeral # 9: MdMcMlMxMvMiM
MDMCMLMXMVMIM =6334
Input Roman numeral # 10: MDMDCDCLCLXLXVXVIVIII
MDMDCDCLCLXLXVXVIVIII =2667

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions