This is Introduction of Computation. Please show complete steps. Please show all
ID: 3878099 • Letter: T
Question
This is Introduction of Computation.
Please show complete steps.
Please show all steps and consist them become a complete regular expression.
6) (4 pts) Give a regular expression for a certain type of scientific notation forreal numbers on which the a. The number can be preceded by a “+" or "-“ sign or the sign may be absent. C. The number may be followed by an exponent field of the form e"+"yiy2 ore"-"Viy2, where y and y2 can be any digit in (0,1,2,3,4,5,6,7,8,9). (Note: With this convention "+"is the sign associated with the scientific number and+the operator of the regular expression.)Explanation / Answer
6)
a) Answer : ("+" + "-" +"")(0+1+2+3+4+5+6+7+8+9)+
explanation:
first
number can be formed from any of 0,1,2,3,4,5,6,7,8,9, so (0+1+2+3+4+5+6+7+8+9)
and they can be any number of times so...(0+1+2+3+4+5+6+7+8+9)* here + means string length at least one
now
at the starting of the number we can have "+" or "-" or "" empty
so ("+" + "-" +"")
b)Answer : (1+2+3+4+5+6+7+8+9)(0+1+2+3+4+5+6+7+8+9)+
explanation:
here given c can't be 0
so removing 0, (1+2+3+4+5+6+7+8+9)//and c length is one
then b1b2b3....bn
min length is 1
so (0+1+2+3+4+5+6+7+8+9)+
c)Answer: (0+1+2+3+4+5+6+7+8+9)+(e"+"+e"-")(0+1+2+3+4+5+6+7+8+9)(0+1+2+3+4+5+6+7+8+9)
explanation:
(0+1+2+3+4+5+6+7+8+9)+(e"+"+e"-")(0+1+2+3+4+5+6+7+8+9)(0+1+2+3+4+5+6+7+8+9)
----------------number------------ exponent------------------Y1-----------------------------Y2
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.