Putting it all together

C++ Project:
Create a C++ program with the following Interface:

Please choose one of the following
1. Show payments
2. Make payments
3. Statistics
4. Exit

In this program, you should use a text file for reading from and writing to.

The first three points in the list should be functions that you will call in the main function

Use a do while to guarantee the program will always be executed unless the user chose 4 to exit.

Create a structure (call it Payment) to store the information of each payment. In this structure, three variables should be declared and they are:
Int month;
double bill;
string natureofPayment;

When the user type 1, the information on the table will be printed on the screen as following:


When the user type 2 a new record will be created where the user will be asked to enter the month, bill and natureofPayment. Once the user is done, the entered information need to be stored into the file. Make sure to enter the natureofPayment as a single string (no spaces)
The main menu should appear once the user is done entering the information
When the user select 3, the total payments for each month will be printed on the screen with that moth.
Selecting 4 will exit the program.
Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
Topic archived. No new replies allowed.