Question: In C Program #include Write 4 functions: boolean function, isVowel, that takes a char and returns the true if a given character is a vowel

In C Program

#include

Write 4 functions:

  • boolean function, isVowel, that takes a char and returns the true if a given character is a vowel and otherwise returns false
  • int function, countUC, that takes a string and returns the number of UPPERCASE letters in the string
  • int function, countLC, that takes a string and returns the number of lowercase letters in the string
  • int function, countOthers, that takes a string and returns the number of non-letters in the string

Write a program that prompts the user to input a sequence of characters (including spaces and special characters) and then uses your functions to output:

  • the number of characters in the string
  • the number of vowels in the string
  • the number of UPPERCASE letters in the string
  • the number of lowercase letters in the string
  • the number of other characters in the string

For Example

Enter a sentence: Test!

There are 5 total characters. There are 1 vowel. There are 1 UPPERCASE letters. There are 3 lowercase letters. There are 1 other characters.

REQUIREMENTS: You can NOT use any functions in . You should use FYI....'y' is not a vowel for this exercise!

You must define and use the functions... do not change their names... there must be a function prototype before main the implementation must be after main.

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!