im alittle stuck with the structure i need for this assignment... id really appreciate some pseudo code or even if your willing to write it out for me... thanks
heres what i need:
With this assignment you will start to learn how to write a practical menu driven program that manages a list of data. You will use an array of structs to organize the data. You will later learn to save the information in a text file.
The assignment is to write a menu driven program that manages a collection of items.
The Menu commands will be:
A....Add a new Entry
D....Delete an Entry
E Edit an Entry
P....Display the Inventory (on the screen)
S....Save Current Inventory to a file.
C....Clear the entire inventory.
L Load sales records from a file
Q...Quit
You will use structs and an array to organize the data in the program. Your struct will hold the brand name, bottling company, quantity in stock, the current cost of the item, the date of the last shipment and the selling price of the item (6 data fields). Choose data types carefully based on type of information.
Task Descriptions
When you add an entry the program will ask the user for each of these data fields on a separate line.
When you delete an entry the program will ask you for the brand name of the item that should be deleted, locate the entry in the array and remove all of the data for that entry. The array should not have unused cells at any other location than the end of the array.
When you display the inventory on the screen, all of the information stored for each entry will be labeled and displayed. You will not display entries that have no valid information.
Saving the collection to a file copies the current entries in the array to an output file. This must include labeling all of the information so that it is clear what information is being provided.
Clearing the collection deletes all of the information in the array
Loading sales records will increase and/or decrease the inventory quantities of the specified brands. (See sample input file posted on Blackboard)
Additional Instructions:
Your program should be called finished.c
You should use at least 10 functions to appropriately break the problem up into smaller pieces.
You should use function prototypes and are not allowed to use global variables.
You should use a #define to set the upper bound of the array.
Your code should be well designed, well commented and written with good style.