Thread: C Program NEED HELP!

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    2

    C Program NEED HELP!

    Hello All,

    I'm new to the forum and C programming in general. I am taking a class at my college and I have an assignment due on Wednesday 6/15. I signed up to this forum to hopefully receive help from knowledgeable people, not to have them do my homework. So that being said, I will continue to post updates between now and then until I get the program right.

    Here is the Program Description:

    Create a new program that allows the user to price fences. There are 3 styles of fence panels to choose from: Board-on-board ($46.97), Dog-ear ($35.97), and Shadowbox ($39.97). Each panel is 8 feet long and 6 feet high. Fence posts are 3 in. by 3 in. and 6 1/2 feet high ($4.97). Based on the style, number of panels, number of posts, the program will compute the price of the fence.

    Write functions to compute the low (using array notation), average, and high (using pointer notation) lengths.

    In the main program, display a welcome message. Then allow the user to select a fence style, and enter into an array the lengths of the fence sections needed. The program will suggest the number of fence posts (one per 8 foot length and one additional) needed. Allow the user to confirm or change the number of fence posts. Then compute and display the number of panels, posts, subtotal, tax, and total. Call the functions to determine and display the shortest and longest fence sections. Call the function to determine and display the average length of the fence sections. Allow the user to repeatedly request the pricing on a fence.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by mattlikex
    I signed up to this forum to hopefully receive help from knowledgeable people, not to have them do my homework. So that being said, I will continue to post updates between now and then until I get the program right.
    That is a good attitude. What have you done so far?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    2
    Thanks for the reply, I haven't been able to work on it yet, I will most likely start between tonight and work most of the day tomorrow. I just got out of the hospital yesterday from surgery on my arm so I've been a bit behind. Once I start, I will post my progress. The pain meds are making me a little LOOPy (haha), so I haven't quite begun.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help converting array program to link list program
    By hsmith1976 in forum C++ Programming
    Replies: 0
    Last Post: 02-14-2010, 09:50 PM
  2. Replies: 1
    Last Post: 03-03-2009, 04:47 PM
  3. Replies: 5
    Last Post: 08-16-2007, 11:43 PM
  4. Replies: 18
    Last Post: 11-13-2006, 01:11 PM
  5. making a program leave a msg for background program when it closes
    By superflygizmo in forum Windows Programming
    Replies: 2
    Last Post: 02-06-2006, 07:44 PM

Tags for this Thread