Like Tree1Likes
  • 1 Post By quzah

String Arrays

This is a discussion on String Arrays within the C Programming forums, part of the General Programming Boards category; Hi.! I'm a IT student and I'm just new in c programming.. can you please help me make my homework? ...

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    7

    Post 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..)

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    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.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    7
    oh!I'm sorry..I thought you guys can help me..even a little..

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    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.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  5. #5
    Registered User
    Join Date
    Sep 2011
    Posts
    7
    ok..thanks for that

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by ikkin28 View Post
    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...

  7. #7
    Registered User
    Join Date
    Sep 2011
    Posts
    7
    ok..that's a big help..I'm sorry for what I did..Thanks again..

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    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.
    CommonTater likes this.
    Hope is the first step on the road to disappointment.

  9. #9
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by ikkin28 View Post
    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.

  10. #10
    Registered User TheBigH's Avatar
    Join Date
    May 2010
    Location
    Melbourne, Australia
    Posts
    426
    Quote Originally Posted by ikkin28 View Post
    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.
    Code:
    while(!asleep) {
       sheep++;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. string arrays
    By Molokai in forum C++ Programming
    Replies: 2
    Last Post: 11-03-2007, 11:21 PM
  2. string arrays
    By lucaspewkas in forum C Programming
    Replies: 2
    Last Post: 04-24-2005, 09:12 PM
  3. string arrays
    By Raison in forum C Programming
    Replies: 27
    Last Post: 10-02-2003, 06:27 PM
  4. string arrays
    By condorx in forum C++ Programming
    Replies: 1
    Last Post: 09-07-2002, 06:59 PM
  5. String arrays
    By Homer in forum C++ Programming
    Replies: 6
    Last Post: 11-08-2001, 07:00 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21