Question: A text is given. Write a program that modifies the casing of letters to uppercase at all places in the text surrounded by and tags.

A text is given. Write a program that modifies the casing of letters to uppercase at all places in the text surrounded by and tags. Tags cannot be nested.

Example:

We are living in a yellow submarine. We don't have anything else.

Result:

We are living in a YELLOW SUBMARINE. We don't have ANYTHING else.


Step by Step Solution

3.43 Rating (143 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

You can achieve this by iterating through the text and toggling a flag when encountering upcase an... View full answer

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!