For a school project, I have to write a budget calculator that will give a menu of adding expenses, removing expenses, adding income and removing income. I have written each a module within my program. And I have the main module saying the original total budget is $4000. How would I make it so that if I were to add or remove from this amount, the other modules would be able to use this adjusted amount?
Global Variables
Collapse
X
-
Tags: None
-
They would have to have access to the container that holds this amount. I would use a class instance variable so it would be visible throughout the class.How would I make it so that if I were to add or remove from this amount, the other modules would be able to use this adjusted amount?
Comment