Regular expression to represent such a number


Define a complex number as an integer or floating point number, followed by a lower-case i followed by another integer or floating point number.Allow either the first or the second number, or both, to have an optional - sign.Floating point numbers must begin with a non-zero digit or "0.", and there must be at least one digit to the right of the decimal point. 
The following are complex numbers: -45i3.2 , 45.001i-5.5, 0.003i315, 0.0i0.0
The following are not: +33i14.7 , -i33.5 , 00.01i45
Write a regular expression to represent such a number. Draw a graph of a DFA that accepts the language defined by your expression. You may use LEX syntax for regular expressions. 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Regular expression to represent such a number
Reference No:- TGS082287

Expected delivery within 24 Hours