Answered step by step
Verified Expert Solution
Link Copied!

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 10 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 $100 a credit hour as a starting point. You can assume the
user will be taking 12 credits.
For example, if the rate of increase is 5%, after 10 years of increase the final
tuition amount would be:
The funtion therefore, would return 1861.59 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 2 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions