Question
Write a CH+ program to declare a character array x of size 20 and prompt the user to fill it with lower-case and upper-case letters
Write a
CH+
program to declare a character array
x
of size 20 and prompt the user to fill it with lower-case and upper-case letters (assume that the user will enter only alphabetical characters, with a maximum of 19 characters).\ The program must eall the following user defined functions:\ A function Split that takes as parameter the array
x
and creates two new arrays; the first one containing the lower-case letters and the second one containing the upper-case letters, and then outputs the content of the fwo arrays.\ A function Occurrence that takes as parameter the array
x
and finds the number of occumences of a letter input by the user.\ The below inage shows a sample run of the program:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started