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
xof 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
xand 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
xand finds the number of occumences of a letter input by the user.\ The below inage shows a sample run of the program:

Write a CH+ program to declare a character array X of size 20 and prompt the user to fill it wilh lower-case and upper-ease letters (assume that the user will enter only alphabetical characters, with a maximum of 19 characters). The program must call the following user defined functions: 1. 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 two arrays. 2. A fuinetion Occurrence that takes as parameter the srray X and finds the number of occurrences of a letter input by the user. The below image shows a sample run of the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
