All To Upper. Read a string from cin into word and modify it so that it has all uppercase letters.
Read a string from cin into word and modify it so that it has all uppercase letters.
- You can only change the code in the middle of this program - where it says YOUR_CODE.
- There is no magic "capitalize them all" - you need to loop through each character and convert each to uppercase.
- There is already code (that you can't change) to print out the word. Your job is to change the word, not print anything out yourself. (Though printing out extra info while debugging may be helpful)
using namespace std;
//Do not modify anything on or above the line below this
//Do not modify anything on or below the line above this
cout << word;