Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- - - - IF YOU DO NOT READ THIS MESSAGE BEFORE STARTING CODE, YOU WILL GET DISLIKE - - - - - I posted

---- IF YOU DO NOT READ THIS MESSAGE BEFORE STARTING CODE, YOU WILL GET DISLIKE-----
I posted this exact same question 11th times and all of them incorrect solutions... please ready details below carefully.
1::::: DO NOT USE ARRAY... NO CHAR[]... NO ARRAY..
2::::: USE SCANF() TO GET INPUT FROM USER...
3::::: ONLY C PROGRAM.
4::::: TEST YOUR CODE TO THE OUTPUT I GIVE BELOW, DON'T RISK A DISLKE FOR YOUR SELF!!!
5::::: SIMPLE CODE JUST DO NOT USE ARRAY AND ONLY C PROGRAM.
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
THAT'S ALL FOLKS :)
USE ALL INPUTS FROM THE SAMPLE GIVIEN...... OTHER EXPERT POSTED SULOTION BUT WAS ONLY 3 OR 4 ANSWER WAS CORRECT NOT ALL OF THEM... MAKE SURE ALL SAMPLE OUTPUT WORKS...LIKE Input Roman numeral # 9: MdMcMlMxMvMiM
MDMCMLMXMVMIM =6334
Input Roman numeral # 8: MCMLIV
MCMLIV =1954

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

Students also viewed these Databases questions