# String Arrays

• 09-21-2011
ikkin28
String Arrays
Hi.!:)

I'm a IT student and I'm just new in c programming..
can you please help me make my homework? 'Coz I'm having a hard time understanding string arrays.We are suppose to make a MAIN MENU for arrays of strings:
A-function that will input for a string and then convert all letters to upper case.
B-function that will convert small letters of a string to capital letters and vise versa.
C-function that will count the sum of all constant letters on the string.
D-function that will display all the vowel letters at the string.
E-function that will count the occurrence of all the letters on the string.
F-function that will reverse the string.
G-function that will identify whether the string is palindrome.

Hope you guys can help..:)):)
• 09-21-2011
AndrewHunter
What have you tried so far? This is not a homework service. You could read through our C Made Easy Tutorials for a good starting point.
• 09-21-2011
ikkin28
oh!I'm sorry..I thought you guys can help me..even a little..:(
• 09-21-2011
AndrewHunter
I did help you, I provided a link to some very good tutorials that are easy to understand. If by "help" you mean "do the project for me" then you are right, we cannot help you. Otherwise post up some code and ask specific questions.
• 09-21-2011
ikkin28
ok..thanks for that:)
• 09-21-2011
CommonTater
Quote:

Originally Posted by ikkin28
Hi.!:)

I'm a IT student and I'm just new in c programming..
can you please help me make my homework? 'Coz I'm having a hard time understanding string arrays.We are suppose to make a MAIN MENU for arrays of strings:
A-function that will input for a string and then convert all letters to upper case.
B-function that will convert small letters of a string to capital letters and vise versa.
C-function that will count the sum of all constant letters on the string.
D-function that will display all the vowel letters at the string.
E-function that will count the occurrence of all the letters on the string.
F-function that will reverse the string.
G-function that will identify whether the string is palindrome.

Hope you guys can help..:)):)

First ... read this... Homework Policy

Now, go at this the smart way... turn off your computer and stop trying to write code... you aren't ready for that just yet.

The first task is to analyse the problem until you understand it well enough to describe each step necessary to complete these functions... in other words your first step is to *understand the problem* in minute detail.

Once you complete that you need to take your newfound understanding and break it down to bite sized chunks so that you can plan exactly how to solve the problem step by step. (Hint, if you can't verbalize this, you haven't finished the first step)

Once you have a plan then you can start researching and writing your code ... Help files and library documentation are your friends! Look stuff up, see what does what... figure out what is and isn't useful to you and how to use it, then incorporate it into your code.

The last step is testing, making sure it does what you want -- nothing more, nothing less and nothing else.

This is how "real" programmers work... it's no joke.

Now as Andrew has said... we aren't going to do your homework for you... but if you run into trouble with the code part of the assignment most of us will be happy to give you a firm nudge in the right direction...
• 09-22-2011
ikkin28
ok..that's a big help..I'm sorry for what I did..Thanks again..:)
• 09-22-2011
quzah
Another thing, don't try to do all the steps at the same time. Get one step working how you want, then worry about the next one. Get a picture in your mind (or on paper) of the general flow of things, then worry about each piece one at a time. Don't try to write all the steps A-G at the same time. Just pick one and make sure it works right. Then move to the next step.

Quzah.
• 09-22-2011
CommonTater
Quote:

Originally Posted by ikkin28
ok..that's a big help..I'm sorry for what I did..Thanks again..:)

Nothing to apologize for...

Most "newbs" make the mistake of trying to write code before they understand the task... we see evidence of it here on a daily basis. I was simply hoping to get you going in the right direction before you ran yourself into real problems...

Like we've said... work on it as much as you can on your own... If you get stuck post code, ask explicit questions... we're usually more than happy to help.
• 09-22-2011
TheBigH
Quote:

Originally Posted by ikkin28
ok..that's a big help..I'm sorry for what I did..Thanks again..:)

You've got nothing to be sorry about. We often get people turning up here who have no intention of doing their own homework and want someone else to do it for them, and we react defensively to that kind of lazy and arrogant attitude.

The trouble is that it's often hard to tell the difference between people who haven't written any code because they want to mooch it off us, and people who haven't written any code because they're genuinely stuck at the very first step. If the answers you got earlier made you feel as though you've stepped on our toes, that's probably why.