Help me with these simple programs

This is a discussion on Help me with these simple programs within the C Programming forums, part of the General Programming Boards category; Hello, I was wondering if anyone can write a very simple program for me that prompts a user for his/her ...

  1. #1
    Help me
    Guest

    Help me with these simple programs

    Hello,

    I was wondering if anyone can write a very simple program for me that prompts a user for his/her name (i.e. John Williams). The program should then print to the screen "Wow (Name entered), thats one cool name you have!"

    It is very simple and not big at all. It should use the gets() function.

    Also, can someone write a program that reads input into a 10-element string array (e.g. 9 or less characters). The program should then print the number of lowercase letters and the number of uppercase letters, if any.
    This program should also use the gets() function. I dont need any error checking for any of these. These should probably be no more than 1kb.

    Thanks to anyone who could write these simple programs. I just need something to use as a foundation to learn C. Thanks

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    > It is very simple and not big at all. It should use the gets()
    > function.

    "Don't make me angry. You wouldn't like me when I'm angry."

    Damn people! No homework without trying it yourself! How many times do I have to say it! Yes, it _IS A SIMPLE PROGRAM_ so do it! I cannot understand how people cannot even take the time to freeking TRY it on their own. What, do they think they're going to break their computer? If this is the case, why do are you even trying to program? You obviously don't want to _TRY_.

    If you aren't willing to even try it on your own, just freeking quit now, you don't have what it takes to be a programmer. Quit now. You are a failure.

    Quzah.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    197

    Red face learn some c-programming!

    What stupid question!

    Read a book for c-programming, for example a new edition of Kerningham&Ritchies "The C program language" or so.
    When I close my eyes nobody can see me...

  4. #4
    Unregistered
    Guest
    of course it is any easy program.....i can't really talk for this guy...i mean, i don't know if he even tried...for all i know he just asked the ppl on this board to do this homework for him...but for me...i do try it on my own...but i couldn't really post my code on here...because i have no idea what direction to go in and it didn't work at all.....so i just asked for advice for where to start...and then i completely didn't understand the code that was sent so ppl acted as if i was retarded...but in fact, i haven't gotten to any of that stuff that was in the code, so i had no idea what was going on....i even looked it up...that's just how this class has been going....she teaches us on how to use scanf and then the same day she gives us homework on doing loops...so we have to figure it out ourselves...so, i'm just talking for myself here.....it's not intelligence that is lacking on my part, just lack of guidance and teaching ability on my teacher's part...

  5. #5
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    post your code no matter how bad it is. if you wont show that you have worked on it then you will almost certainly get absolutely no help from people here.If we see your bad code,we can see where you are going wrong in your understanding of the language and try to help you out.The problem itself is almost psedocode for the answer. (Although i would never use gets() because fgets() is safer)
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple 2d "putpixel" api for windows?
    By spiky in forum C Programming
    Replies: 2
    Last Post: 10-27-2005, 03:44 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Hints required to complete simple programs
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 06-30-2002, 10:20 PM
  5. Need help with simple programs...
    By BCole19 in forum C++ Programming
    Replies: 22
    Last Post: 08-30-2001, 10:45 PM

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