Question: String data _ entry is read from input with leading and trailing whitespaces. Remove any leading and trailing whitespaces in the string. If data _
String dataentry is read from input with leading and trailing whitespaces. Remove any leading and trailing whitespaces in the string. If dataentry contains the string 'Paint color: capitalize all the characters in dataentry. Otherwise, capitalize the first letter for each word in dataentry. Finally, print out the resulting string.
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
