Question: Write a regular expression that matches prices, i . e . , a $ symbol, followed by at least one digit. If there is a
Write a regular expression that matches prices, ie a $ symbol, followed by at least one digit. If there
is a decimal point, there must be at least one digit before it and exactly two digits after it There are no
commas. Draw the corresponding finite automaton.
Improve your regex such that it accepts $ and $ but rejects all other inputs that start with $ and
continue with other symbols, eg $$$ Draw the corresponding finite automaton.
Improve your regex such that it also accepts commas in the thousands, millions places, etc. For example,
$$ are accepted.
A matrix M has rows and columns.
a what is its dimension?
b what is the dimension of MTT the transpose of M
c what is the dimension of MTTM
d what is the dimension of MMTT
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
