Programming Project 1

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 Number
XIV = 14