My goal is to write a monthly budget program where the user is prompted to enter in how much they spent in 10 categories, and the program will compare to what is allotted for as the budget constraints.
My question is. Is it possible to create a total function that shows the total fixed and user budget, and an equation showing the difference between the 2 values (like fixed.housing - spent.housing) and answer will display in a 3rd column.
And the second function gets added where? to the void output? Sorry if I am asking too much. I wanted the program to give me:
A. The fixed budget.
B. The user budget.
C. The difference between the two.
D. The total budget (both fixed and user) and the difference.
I do have A and B. I would assume that the calculate_spent would have given me C but it is not.
I thank you again for the assistance you are giving me.
I attempted to run a quick fix and insert total.housing, etc.... in lines 103-112, but the output is garbage.