Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started