CPE 101
Programming Project 4
Chapter 11, Programming project number 8.
Special Instructions. You will prompt the user for the info to fill in the structure inside your program by "product category" that then leads the the correct prompts to fill in the required information for that category (fills the appropriate struct) and when finished filling in for that product category, prompts the user for another category to fill in, ending the process when the product category entered is "Q" where it will print out a neat list of the information you've stored in your structures.
Turn it in to handin folder Prog4
It is due on Friday, 5 December.
Sample way to interact with your program P4 follows with just two categories tested - make your input method and the output match.
Enter product category (M,P,D,C,N,Q) -> M
Enter item name -> Chicks
Enter cost of item (in cents) -> 599
Enter meat type (R,P,F) -> P
Enter date of packaging (#-#-#) -> 12-02-2008
Enter date of expiration (#-#-#) -> 01-10-2009
Enter product category (M,P,D,C,N,Q) -> P
Enter item name -> RabbitFood
Enter cost of item (in cents) -> 49
Enter produce type (F,V) -> V
Enter date received (#-#-#) -> 12-01-2008
Enter product category (M,P,D,C,N, Q) -> Q
Here is our stock:
We have Chicks in our Poultry Dept. that costs 5.99 per pound. It was packed on 12-02-2008 and will expire on 01-10-2009.
We have RabbitFood in our Vegetable Dept. that costs 49 cents per pound. It was received on 12-01-2009.
______________________________________