Question: please using c++ A student has established the following monthly budget: - Write a program that has a Monthly Budget stracture designed to hold cach
A student has established the following monthly budget: - Write a program that has a Monthly Budget stracture designed to hold cach of these expense categories. -The program should pass the empty structure to a function that asks the user to enter the amounts spent in each budget category during a month and return a structure as a result. - Write a separate function to add a Monhly Budget Structure to a file. The writing task should add the new Monthly Budget in one single line at the end of the file and preserve the old content. - Write a separate function to count the mumber of lines in the file and return it as resalt. - Write a separate function to show the saved Monthly Budgets from the file. The function reads data from the file, saves it into a dynamically allocated array of Monthly Bodgets and displays the Monthly Budget list from the array. - Your program must display a menu with three options, 1) Add a Monthly Budget, 2) Show List, 3) Exit. The program mus loop antal the user selects option 3 and yoo must ensure the user has entered a valid option
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
