I'm supposed to write a program for a loan calculator. I know there are other errors in the code (like option 5 and 6 are not set up yet), but I'm trying to figure out why it isn't recognizing the values for principal, annual interest, number of months and monthly payment separately. It enters the same value, despite which number I choose, into all options.
I don't see how monthly_payment is set up any differently than the other first three options. Anyway, I'm trying to figure out where the logic problem is happening. An indication to the line would be nice.
Your bad indentation threw Bazzy off -- the problem is in get_choice(), lines 46-68.
For each option, you are displaying the same value. What does choice_num (and choice) have to do with with your principal, interest, number of months, and monthly payment?
BTW, I don't recommend using integers for your monies. When it comes time to calculate things like the principle you will want to have non-integer values, so that things like division work correctly.