/Roman-Numerals

A C++ program simulating a Finite State Machine to accept valid Roman Numerals from 1-100

Primary LanguageC++

Roman-Numerals

CSCI 371

Simulate a FSM

Purpose:

Convert input in the form of Roman Numerals (up to 100) and output the equivalent base 10 value.

Method:

Create and implement a Finite state machine. It should have a next state table and an action table.

Sample Input

  • IV
  • XIII
  • XIIII
  • XIV

Sample Output

  • IV = 4
  • XIII = 13
  • XIIII = error, not a Roman Numeral
  • XIV = 14`