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 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 uppercase characters in the string and return that value to the user. 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: #include #include #include int main void char sentence; int i count ; printfPlease enter your sentence.
; ; All letters to lowercase for ; Capitalize every other character starting at the first character in the string for if sentencei; if count; EEL Fall Exam a Output the formatted sentence and number of characters ; printfThe number of upper case letters is: d
; return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
