Question: Create a function in Python called GetTuition that will determine how much tuition will increase over a 1 0 year period. The function needs to
Create a function in Python called GetTuition that will determine how much
tuition will increase over a year period. The function needs to take in to it the
rate of increase and return the last tuition amount calculated. Within the
function you will use $ a credit hour as a starting point. You can assume the
user will be taking credits.
For example, if the rate of increase is after years of increase the final
tuition amount would be:
The funtion therefore, would return back to where it was called.
Some hints to solving this. It is best to use a loop to do your math. Remember
computers are good at doing math and like to do repetitive tasks. Also you will
want to round your cost to decimal places. Use the ROUND function as
discussed in the Total Price problem. Round your tuition value BEFORE you
return it back to where it was called. This is important in order to avoid rounding
errors.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
