I think I would start with:
You should have a file that you read in that has a list of items and their cost on the menu. |
The easiest way is probably to make a text file and read that line by line. When you make this file, also think about how your program is going to know the what data is a the name of a menu item and what data is the corresponding price.
You could do this until you have read the last line (in which case you will have to store the information in something that grows as you go) or you could first load information about the number of items in the menu (so you can create something that is big enough to store the information in and does not need to grow anymore).
When you have the menu loaded, you will know what kind of data you have to store for each order/customer/day.
While it would be possible to write the information of each order to a file and then read the data from file to calculate the outcome, I think there may be easier ways to do it. For example keeping them in memory.
Good luck, Nico
p.s. it is probably a good idea to store all money-amounts as integers in the smallest possible unit and don't use floats or doubles before you are ready to display the value as "your friend" might loose money on large orders due to the accuracy.