Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python programming Part Ill: Tuition Calculator (20 points) Write a function tuition.caiculator O that takes the following arguments, in this order I, student.type: a string
Python programming
Part Ill: Tuition Calculator (20 points) Write a function tuition.caiculator O that takes the following arguments, in this order I, student.type: a string that indicales a student's status, which can be one of International', In State or Out of State 2 numcredits: an integer that indicates the number of credits the student is planning to take. Your function should cakculate and return the stadent's expected tuition based on student.type and numucredits and the rules be low . If a student is taking 1-11 credits, he/she is conside red part-time and the tuition is computed ty num.eredita 1. for in State' students, one credit costs $300.00 2. for ' Out of State students, one credit costs S600.00 3, for' International' students, one credit costs $900.00 CSE 101- Fall 2017 Lab #3 Page 3 . If a student is taking 2-21 credits, he/she is considered full-time and the tution is a flat rate. For every type of studen, the tuition can be calculated by cost per credit corresponding to the student's rype 12 Il a student is taking 22 or more crodits, its, helshe is considered werloaded, and the tuition can be calculaed considered hy: flat cast for eredits less thuitor equal to 21 + 110% of cost per entra credit based on stulenhpe 1. la this partin particular, In State' and out of statef stiudents pay the sanie cost per credit for the overloaded credits, which is $300. 00 per credit 2 For International studems one credit costs $900.00 For example. if an 'Out of state' student is planning to take 25 credits, he will py a 12 x $300.00 Bax rae for the first 21 credits using the rule described above, plus a 4 x $300. 00 x 1.1 for the four overload credits Note: If the student .type or humcredita is invalid, your function shouald reurn None. For example, a Vinitor at udent _fype or a 0 for num.eredits would be invalid. Also nole that num.oredits must be at least 1, and tdhere's no real upper limit to this value Also, the returned value will atways be a floating-point number Examples: Return Value Function Call uition ealculatorI'En Statel E uition.caldulator ( Intenat iona1221 11790.0 1500.0 1200 Remember Codeload has additional tests for you to tryl Upload y our code there and a ourd hStep 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