I know everything that i want to do but i never did a menu before so i dont know how to go about doing so if at all possible can someone post a sample program that uses a menu-selection with subprograms for each. This here is something like what i want my program to do
I have a soft drink distrubutorship company that sells coca-cola(id number 1), pepsi(id number 2), sprite(id number 3), and root-beer(id number 4) by the case.
The menu will do the following:
(e) enter invetory
(p) purchase sode
(s) sold soda
(d) display inventory
(q) quit
I will promt the user to enter the inventory for each brand at the start of the week and then process all weekly sales and purchase records for each brand.
Each transaction will consist of 2 data items which are 1) brand identification number and 2) the amount purchased (a positive interger) or the amount sold (a negative integer). It is already assumed that i have sufficient foresight to prevent depletion of my inventory for all the brands. Also the the display of my weekly inventory will contain the brand's name.
everything is inputted from the keyboard.