I created the program below for an assignment. You are supposed to be able enter in your original principal, minimum interest rate, maximum interest rate, and number of years to accumulate interest.
After testing it, everything works just fine unless I input my maximum interest as .06, .6, etc. For some reason, it will not display the maximum interest. If I input .06 as the minimum interest, it displays successfully, and if I use a maximum interest amount higher than .06, it will display the .06 amount. There is no other amount that presents me with a problem.
Would anyone be able to assist me in figuring out what I need to change to correct this?