Help - New kid on the block

This is a discussion on Help - New kid on the block within the C Programming forums, part of the General Programming Boards category; I recently completed Teach Yourself C in 21 days, done exercises on the book, but now I need to have ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    1

    Unhappy Help - New kid on the block

    I recently completed Teach Yourself C in 21 days, done exercises on the book, but now I need to have some kind of test to see if i will be able to apply my basic C to real environmnet. Do any of you out there have simple sample spec's for me to try out? I will appreciate any advice if available.
    Last edited by seli2565; 09-27-2001 at 04:28 AM.

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    There's a quiz attached to this site (see front page), a few contest sites around that will give you problems to solve ( here's a link to one), or Brainbench has a free C test you can take.
    zen

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    3

    Smile

    Well, i have a little project for you. It might not be that hard though. Ok, I'll give you an output and you have to write the program code.


    Question is:
    1. This program will read a float and a character for each scanf(). The character could be d for deposit or w for withdrawal. Starting with a balance of zero, add the deposits and subtract the withdrawals until the balance becomes negative. Then print by how much the balance went negative.
    Consider the output from the following data:

    -------output-------
    100.0 d
    20.0 d
    60.0 w
    200.0 w
    Your account now is -140.00 dollars.


    Hint:
    You can use if/else statement or do/while statement.

    Enjoy!!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 04:42 PM
  2. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 11:36 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 10:37 AM
  4. New Kid on the Block
    By danielthomas3 in forum Game Programming
    Replies: 2
    Last Post: 04-10-2002, 11:36 PM
  5. pointers
    By fanaonc in forum C Programming
    Replies: 3
    Last Post: 11-17-2001, 02:18 AM

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