Write a function get_Roman_token() based on the following pseudocode: try to rea
ID: 3620468 • Letter: W
Question
Write a function get_Roman_token() based on the followingpseudocode:
try to read a char c1
if it's a period, return 0
first = roman_to_int(c1)
try to read a char c2
if it's a period, put back c2 and return first
second = roman_to_int(c2)
if second > first, return second minus first
put back c2
return first
and a main function which which repeatedly (until end-of-file) asks the user to
enter a Roman number followed by a period, calls get_Roman_token() until it
returns 0, adds up all the values returned, then prints the decimal value.
For example, entering MCMXCIV. should output 1994. Name your program
roman2.cpp.