Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a solution that accepts a string input representing a college and an integer input identifying the number of credit hours to be taken for
Create a solution that accepts a string input representing a college and an integer input identifying the number of credit hours to be taken for the upcoming semester. The following dictionary tuition lists available colleges as the key with the cost per credit hour as the value. tuition = \{MFN: 202, "UDY": 422, 'GNE: 452, "WBA":281, TKL":434, 'TXW: 419\} Additionally. - If a student is taking fewer than 6 credits, the price is the full cost per credit hour. - If a student is taking between 6 and 11 credits (inclusive), the student gets a 15% discount. - If a student is taking 12 or more credits, the student gets a 40% discount. Output the chosen college and total cost of tuition to two decimal places. The solution output should be in the format pollege_name Stotal_tuition_cost Sample Input/Output: If the input is then the expected output is MEN $1454.40 Alternatively, if the input is then the expected output is Previous
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