Question: In a programming language a decimal number, or a float, is represented as a sequence of characters starting with + or , having a decimal

In a programming language a decimal number, or a float, is represented as a sequence of characters starting with + or , having a decimal dot in it, ending with f, and having at least two digits (one before the decimal dot, one after). Additionally, trailing zeroes are allowed, while leading zeroes are not. For example, +361.126f and 0.3200f are valid ways to represent two decimal numbers but 26.209 and f1.236.- are not. Give a regular expression over alphabet {0,1,2,3,4,5,6,7,8,9,+,,,,f} that defines all floats in base 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
