Question: 2. (20 points) Write an algorithm (pseudocode) to replace every second character with its upper-case representation. Assume that a list filled with lower-case letters

2. (20 points) Write an algorithm (pseudocode) to replace every second character

 

2. (20 points) Write an algorithm (pseudocode) to replace every second character with its upper-case representation. Assume that a list filled with lower-case letters is already provided. For example: Having chars['h', 'e', '1', '1', '0', ['h', 'e', '1', '1', 'o', the algorithm, the array will be, chars 'M', 'a']. = 'e', 'm', 'm', 'a']. After running [h', 'E', '1', 'L', 'o', 'E', 'm', The algorithm should output the final array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

solution Here is the pseudocode for the algorithm that replaces eve... 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!