GUI StringBuilder RRS feed

  • Question

  • Implement an extension method for class StringBuilder to count the number of words contained in a StringBuilder object. For example, if a StringBuilder object sb=”This is to test whether the extension method count can return a right answer or not”, the number of words contained in sb is 16.   
    Write a GUI application that will allow user to input a number of words that s/he wants in a sentence. Using StringBuilder create a sentence with the specified number of words. The words in the sentence have random ASCII characters. A number of characters in each word is random number between 1 and 20
    Wednesday, June 3, 2020 7:07 AM

All replies

  • And what is the problem/bug ?
    Wednesday, June 3, 2020 9:59 AM
  • Obviously this is the exact copy of "question" in homework, and we're not going to just show you the code here.

    You can ask if you have problem on solving homework, but you must show what you've done so far, and what exactly you can't solve yourself.

    Wednesday, June 3, 2020 11:13 AM