Create a one-dimensional array to read 20 alphabetical letters (your program should be able to detect and print out an error message if a non-alphabetical letter is entered). As each letter is entered, print a message saying ‘duplicate letter’ if the letter is already in the array. Write a function that can sort the array after all 20 letters have been entered. Write another function that print out the most frequent letter and number of times it was entered. Prepare for the case where all 20 letters are different, or all are the same
Chances are that nobody will do yuour homework for you.
You need to show what you've managed so far, ask specific questions about things that you've tried that don't work, be willing to read and research what people tell you.
Show us what you've got. If you have zero code, not even an empty program that does nothing, then you're not going to get very far.
No-one will write the program for you.
Start by assigning values to the array you've been given.
Take the assignment in steps and ask specific questions if you cannot work them out yourself.