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.