Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Having trouble with this 4 part question. Consider a language of words, where ea

ID: 3539299 • Letter: H

Question

Having trouble with this 4 part question.


                    Consider a language of words, where each word is a string of dots and dashes. The following grammar describes this language:
<word> = <dot> | <dash><word> | <word> <dot>
<dot> = .
<dash> = -

a. Write all three-character strings that are in this language.
b. Is the string %u2026.%u2014in this language? Explain.
c. Write a seven-character string that contains more dashes than dots and is in the language. Show how you know that your answer is correct.
d. Write pseudocode for a recursive function isIn(str) that returns true if the string str is in this language and returns false otherwise.

Explanation / Answer

can you post answers of first 3 ques ?

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote