One way to do that (and it's quite an advanced Java concept)
would be to create a text file (txt) which stores the entire menu.
Then write a program that would interact with the text file and print...
Type: Posts; User: Ada Lovelace
One way to do that (and it's quite an advanced Java concept)
would be to create a text file (txt) which stores the entire menu.
Then write a program that would interact with the text file and print...
That's more or less what I meant. For example, if your output
is like this:
Item Quantity Price
Fries 2 0.99
Burger 1 0.99
Total: 1.98
Then for the invoice to show...
One way is to declare a integer variable to store each type of
product. Say if you had six products, you could declare six
separate integer variables which each store the quantity purchased
of...