Program in C... need assistance..

This is a discussion on Program in C... need assistance.. within the C Programming forums, part of the General Programming Boards category; I have to write a program in C, but I am lost and have no idea where to begin... I ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    3

    Question Program in C... need assistance..

    I have to write a program in C, but I am lost and have no idea where to begin... I have the pseudo-code for the program, but am honestly lost... If anyone can help or lead me in the right direction, I would gladly appreciate thank you...



    start with full bottles of pepsi and coke
    get size of pour unit
    get sufficiently mixed measure

    [[[1st function]]]
    print header rows of table

    [[[2nd function]]]
    print first data row, before any pouring
    while not sufficiently mixed
    pour one unit from coke bottle to pepsi bottle
    figure out how much coke and pepsi are in that unit
    add that coke and pepsi to pepsi bottle
    remove that coke and pepsi from the coke bottle
    pour one unit from pepsi bottle to coke bottle
    figure out how much coke and pepsi are in that unit
    add that coke and pepsi to the code bottle
    remove that coke and pepsi from the pepsi bottle
    increment shake count
    print row of table with shake number, percents of coke and
    pepsi in pepsi bottle

    thank you..

  2. #2
    cwr
    cwr is offline
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    868
    We don't do homework, post an attempt and we'll help you with the problems. If you don't have ANY idea, perhaps you should have paid more attention in class?

    See this thread.

  3. #3
    Registered User Baaaah!'s Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    23
    How can you pour one 'unit' - whatever that means - from the coke bottle to the pepsi bottle, when both bottles start full to begin with

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 10:17 PM
  2. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  3. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

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