Question: C## Program Requirements a GUI application with a method that accepts a string as an argument. It should have 3 labels that display the information

C## Program Requirements

a GUI application with a method that accepts a string as an argument. It should have 3 labels that display the information below. The code needed to perform each of the label operations should be performed in a different method.

  • Label 1: Displays the number of words it contains
    • For instance, if the argument is "Four score and seven years ago," the method should display the number 6

  • Label 2 Displays a copy of the string with the first character of each sentence capitalized
    • For instance, if the argument is "hello. my name is Joe. what is your name?" the method should display the string "Hello. My name is Joe. What is your name?"
  • Label 3 - Displays the number of vowels that the string contains
    • For instance, if the argument is hello world, the method should display the number 3

Be Sure to put

  • Handling Exceptions include try/catch for inappropriate input
  • A pleasing design (think about size, font, colors, control placement, etc.)
  • An appropriate image(s)

Optional Program Boost

Add to the application: accepts as input a sentence in which all the words are run together but the first character of each word is uppercase. Convert the sentence to a string in which the words are separated by spaces and only the first word starts with an uppercase letter. For example, the string "StopAndSmellTheRoses." would be converted to "Stop and smell the roses.".

Display in a 4th label.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!