Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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": 287, 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

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions