HELP ME MAKE A MENU FILE (DUE IN TWO DAYS)

If you want help you need to write code first and post it here. We can then give you ideas of how to improve the code.

If you want us to do all the work then put this for-hire in the Jobs section.

The work won't be cheap.
Hello brian4589,

I would start with:

Create a new file
Create the headers in the file
Ask for the name of the order


Work on that 1 step at a time. Compile often and test when there are no errors.

I would help if you have some idea of what the file should look like, even if you create an example in Notepad for an example.

I have no idea what you know or what you can use in this program, so it would help if you mentioned that. You would not want replies telling you to use a "vector" if you have not studied that yet.

It looks like you will have 1 file with all the items available and their cost and 1 file to hold each transaction. The question is for this input file do you have to create your own file or will another file be used to test your program? If another file is used you will need to know what its format is.

If you only have 2 days to do this you had better be prepared to spent a lot of time working on your program an posting update often.

Andy
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.
duplicate post: http://www.cplusplus.com/forum/jobs/274689/

I guess not, it looks like the post was memory-holed.
Last edited on
Topic archived. No new replies allowed.