Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C PROGRAMMING Write 4 functions: boolean function, isVowel, that takes a char and returns the true if a given character is a vowel and otherwise

C PROGRAMMING

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago