please help 2 15 points when programs are written in a language e g c matlab python 5148922

please help


2. (15 points) When programs are written in a language e.g. C, Matlab, Python e.t.c it is common practice to write comments n 2. (15 points) When programs are written in a language e.g. C, Matlab, Python e.t.c it is common practice to write comments next to cach line so that the code is more readable. However, we only want to execute the actual code and ignore the comment. Design a FSM that will take in a program and strip the comments out and only retain the code. The comments all begin with a on a keyboard is a valid code character. Assume that there is a unique code assigned to the newline, % and every other character. For the purpose of this problem you can use a decode block that will automatically set the output=1 for that particular character and zero otherwise. Assume cach character is 8-bits long and is given as a parallel input and cach letter of the code comes in scrially i.c. one character every clock cycle. The FSM should output the letter if it is a valid code letter. Question 2: 15points % and ends with a newline character. Every other character F

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now