*This needs to be written in c programming using arrays.*
Write a program with the file name
lab5_problem2.c
that asks the user to enter a sentence
ended by a period and prints out the number of times eachcharacter appears in the sentence, only
for the characters that occur at least once. Uppercase andlowercase version of a letter should be
counted toward the same letter. The program should functionas follows (the items underlined are
to be entered by the user):
Enter a sentence (end by ‘.’): This is a shortsentence.
Occurrences of ‘a’: 1
Occurrences of ‘c’: 1
Occurrences of
PayPal Gateway not configured
PayPal Gateway not configured