Question: 1 In a programming language a decimal number, or a float, is represented as a sequence of characters starting with + or -, having a
1 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.
note :automata expert should anser it im not satisfied by all previous solutions
The regular expression matches the description and all decimal numbers can be represented.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
