C++ Text Analyzing

I'm a beginner C++ Student and I'm stuck on an assignment.

I'm able to change the text to be reported in reverse however there are other parts that are required to be included and done with one run of the program.

An output that has user entered text converted into all uppercase.
An output that has user entered text converted into lowercase.
An output that counts the number of consonants and vowels of the input.

Any help will be helpful.

Comments

  • Please post here how far you've gone so we can REALLY help you.
    We can't do everything for you.You will learn nothing at the end.
  • : Please post here how far you've gone so we can REALLY help you.
    : We can't do everything for you.You will learn nothing at the end.
    :

    Indeed.

    To get you started:
    You get one input string, and have to modify it multiple times. That means that each modification will have to be done in a copy of the original.
    With the string class, this can be done quite easily.

    Use tolower() and toupper() in 'locale' to convert a character to lower, respectively upper-case.

    For the last part, it's probably easiest to use an all-lowercase string (or all-uppercase). Then, look at each character in the string and check whether it is a consonant, a vowel, or neither, and keep a counter of how many of each you came accross.

    Good luck.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories