Question: using terminal command line , can anyone help 6. Write a C program that reads a sentence from the keyboard until a newline character is
using terminal command line , can anyone help

6. Write a C program that reads a sentence from the keyboard until a newline character is met (i.e., Enter' button from the keyboard is pressed). Next, the user is asked to type any alphabet and the program will count the number of occurrences of that particular alphabet in the sentence. The program will ignore case in alphabets (i.c., uppercase or lowercase). For example, if the user types "Hello World" and wants to look for the number of occurrences of 'O' o in the sentence, the program will generate the following output. 8 pts ype&sentence ello World!!! ype a character that you'd like to find the number of occurrences in the sentence: lphabet o haa a frequency of 2 CSCD204S Consider the following C code countChar.c. The comments in code show the steps you need to write to make the code work. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
