Problem:
Question 1- Write the method countWords.Given a sentence as an array of characters, compute how many words are included. The only characters that will appear in our sentences are letters, spaces,commas, and a period will always end the sentence.Every comma will be followed by a space.
Question 2- Design a sequential circuit that produces a 1 at the Z output when the input X changes from 0 to 1 or from 1 to 0, and produces a zero at all other times. Draw the circuit diagram and clearly label all inputs and outputs.
Any help would be greatly appreciated in designing a sequential circuit that produces a 1 at the Z output.