Show all posts by user
Is there an exam guide?
My understanding of the question is that the input must be read from the keyboard.
I then took the input, split the string into words using the split() method and stored the words in an array.
Finally, I used a for loop to print the words to the screen.
How have other students approached question 1? I have set my program up to look for the first space in the sentence and then add the character before the space to the acronym. Then to go on and look for the next space in the sentence and so on. The final step is to add the last character of the sentence to the acronym.
Does anyone else have a different idea of how to tackle this question?