15,389,797 members
See more:
```Develop an algorithm that takes as input a string like "A2h;m!Et?", removes all unwanted symbols like punctuators or digits,
and then converts all letters into capitalized form as in "AHMET". Illustrate the algorithm by simple drawings. Then, translate
the algorithm into C code. Also, provide a sample run for proving the correctness of the algorithm```

What way to follow
What can I do
_?

What way to follow

What I have tried:

What way to follow I don't know , stack or linked list or what ?
Posted
Updated 3-Jun-21 23:45pm
v2
CHill60 4-Dec-20 8:07am

a stack or linked list is not part of the algorithm, those are coding constructs that you might, or might not use. What algorithm have you devised to solve the problem?

## Solution 2

As with your other question (which I assume you have now completed) you need to follow the instructions, which are fairly clear.
Something like:
```Create a destination array, at least as big as the source.
For each character in the source:
- if it is an alphabetic character, convert it to upper case if necessary
- copy it to the next position in the destination.
- if it is not alphabetic ignore it.```

Not really too difficult. You could overwrite the original source rather than create a new array if you wish.
v2
KarstenK 4-Dec-20 14:02pm

Never change input data. It makes debugging ass in the pain. :-O
Richard MacCutchan 5-Dec-20 4:48am

You are right.

## Solution 1

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Top Experts
Last 24hrsThis month
 Richard MacCutchan 125 OriginalGriff 105 0x01AA 75 Gerry Schmitz 55 Patrice T 45
 OriginalGriff 990 Richard MacCutchan 515 0x01AA 265 Gerry Schmitz 250 Maciej Los 190

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900