Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c please In ancient Rome, the following symbols were used for numbers: This roman system is not positional like our numbering system. The symbols

in c please
image text in transcribed
In ancient Rome, the following symbols were used for numbers: This roman system is not positional like our numbering system. The symbols have fixed values regardless of where they appear in the number. For example, II is 2 and LXV is 50+ 10+5=65. However, adding a symbol before another can mean "subtract" if the symbol before is smaller. For example: IV means 4 (subtract 1 from 5) and CM means 900 (subtract 100 from 1000 ). Write a C program that prompts the user to enter a string representing a roman number and prints the equivalent decimal number Note: Assume the maximum size of the string is 100

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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