Write a C program that reads in a text from keyboard and determinesthe frequency
ID: 3616777 • Letter: W
Question
Write a C program that reads in a text from keyboard and determinesthe frequency of each lower caseletter given in the text. For example, for the input ab a + ( a ) A + B = C d def efefefeeed f a The output is Letter Count a 4 b 1 c 0 d 3 e 6
(PArt B) Assume that the input text is case sensitive(i.e 'A' is sameas 'a'). For example the output for the above input text should be Letter Count a 5 b 2 c 1 d 3 e 6 ab a + ( a ) A + B = C d def efefefeeed f a The output is Letter Count a 4 b 1 c 0 d 3 e 6
(PArt B) Assume that the input text is case sensitive(i.e 'A' is sameas 'a'). For example the output for the above input text should be Letter Count a 5 b 2 c 1 d 3 e 6 Letter Count a 5 b 2 c 1 d 3 e 6
Explanation / Answer
please rate - thanks #include #include int main() { char a[81]; int counts[80]={0}; int i,j; printf("Enter a string: "); gets(a); printf("%d ",strlen(a)); for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.