I have an exam coming up on this unit found in the guide to programming with Java textbook. I was just wondering if someone can provide an algorithm to the following question.
13. a.) Write an algorithm to count the number of words in a sentence.
b.) Write an algorithm to count the number of letters in a
Please if you can just stick to loop and string methods. We have yet to cover topics such as Arrays. I have been working hard at this and would appreciate any help. Thank you in advance.