Help!! Due Today!! Family Surgery Prevented me from doing HW
Hey guys, i have been coming around here a while, lurking, getting idea's to help myself with Homework mainly, im in C programming in school, but its my first programming course, and i have been doing great so far. However recently my father in law had to have a liver transplant and i have been driving back and forth every other day or so to see in about 2 hours away. this has really hindered my ability to do my homework, i was wondering if any of you would be gracious enough to At least get me started in the right direction ,i dont have time to read a whole chapter and do the work by tonight... If not thats fine i understand.
Here is my Assignment.
"1. Create a new program to display product information for cat food. You will use arrays to hold the type (C for Cat, K for Kitten), package size (weight), product ID (SKU), and price. (See table below for data to use in the initializer lists.) The program should calculate and store the price per ounce to allow the user to compare prices.
Write functions to compute the low (using array notation), average, and high (using pointer notation) values.
In the main program, display a welcome message and display the product information. Call the functions to display the product information for the products with the lowest and highest price per ounce. Call the function and display the average price per ounce. Allow the user to repeatedly request the display product information based on the product ID.
Include comments to document each function, its input and output.
Note: This project demonstrates arrays and pointers in C."
Code:
Type Pounds SKU Price
C 3.50 66311 6.99
C 7.00 62677 9.99
C 16.00 1235303 16.99
C 3.50 902829 6.99
C 7.00 902837 10.99
C 16.00 1235265 17.99
C 3.00 1145568 7.99
C 6.00 1145690 10.99
C 14.00 1145550 16.99
C 3.00 1042629 5.49
C 6.00 1042602 9.99
C 6.00 1042580 9.99
C 15.00 1042599 20.99
C 3.15 1052187 7.99
K 3.50 146390 6.99
K 14.00 1056638 17.99