Question: . Complete the program shell below. The program uses a character array ( string ) named sentence to collect one sentence ( up to 1

. Complete the program shell below. The program uses a character array (string) named sentence to collect one sentence (up to 100 characters) as an input from the user. Output the sentence back to the user exactly as it was entered, then change all letters to lower case. Starting at the first character in the string, capitalize every other character and output the sentence again. Additionally, count the number of upper-case characters in the string and return that value to the user. (15 points) Sample Output: Please enter your sentence: FINALS WEEK CAN BE REALLY LONG Your sentence is: FINALS WEEK CAN BE REALLY LONG FiNaLs wEeK CaN Be rEaLlY LoNg The number of upper case letters is: 13. #include #include #include int main (void){ char sentence[___________]; int i =0, count =0; printf("Please enter your sentence.
"); _____________________________________________________________________________; //All letters to lowercase for (_________________________________________________________________________)__________________________________________________________________________; //Capitalize every other character starting at the first character in the string for (_________________________________________________________________________){ if (________________________________________________________________________){ sentence[i]=____________________________________________________________; if (_____________________________________________________________________) count++; } EEL4834 Fall 2023 Exam 3a }//Output the formatted sentence and number of characters ____________________________________________________________________________; printf("The number of upper case letters is: %d
",__________________________); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!