Question: 1. 2. C++ Given the code: string s; cout >s; Write a loop that will convert all lower case characters in the string s to

1.

1. 2. C++ Given the code: string s; cout >s; Write a

2.

loop that will convert all lower case characters in the string s

C++

Given the code: string s; cout >s; Write a loop that will convert all lower case characters in the string s to uppercase. Print the modified string s after the loop. Note that s can be a string of any length. Example Output 1 Enter a string of any length: Hello HELLO Example Output 2 Enter a string of any length: Goodbye GOODBYE Write a nested loop to print the following for any nxn image of odd dimensions: Example Output (if n==5): ): OXOXO Example Output (if n==3)

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 Databases Questions!