help on logic
I have a program that is supposed to first display a restraunt menu. Then it takes orders... the limitation to this is that you can only take up to 8 orders and only one order per item (there are 8 items to choose from too)... After it takes the orders it will then display an invoice of the items selected add the tax to the item then display an amount due....
my question is... would using a Record (structs) be too much or is an array a simplier way to do it...
If my explanation is too confusing I'll post the instructions then...
Heres the Logic I'm thinking about:
Display Welcome } These three are part
Display Menu } of a function called
Display Instructions } "showMenu" (Required)
Ask User to Choose an Item Number
Ask User if they would like another Item
REPEAT Until No is received
When No is received Run function Print Check
Display Item(s) selected
Display Amount Due
> my question is... would using a Record (structs) be too much or is an array a simplier way to do it...
No idea - but choosing one and doing it will tell you something
Doing both and comparing your experience will tell you even more.
I advice you to use them (*first-object-array) because you have a menu that can be open all day and never know how much of no one are going to consult the slim (" in even time sometimes ")
then them (*first-object-array) assure an economy at the level of the memory and facilitate it of management in the program
if you have any question for using (*) write to me ?
/* exucuse me for mistakes because i use a translator (writing english) */