Question: Write a Python program, in a file called compute_fees.py, to solve the following problem: Charles Babbage University charges $120.00 for each credit hour for

Write a Python program, in a file called compute_fees.py, to solve the following problem: Charles Babbage Sample input prompts, input and output for run 2 of the program (input shown in bold blue): Enter the student

Write a Python program, in a file called compute_fees.py, to solve the following problem: Charles Babbage University charges $120.00 for each credit hour for a course, $250.00 per semester for a regular residence room, $400.00 per semester for an air-conditioned residence room, and $600.00 per semester for residence food. All students are charged a $30.00 matriculation fee. Graduating students must also pay a $35.00 diploma fee. Write a program to compute the fees that must be paid by a student. Your program should include an appropriate warning message ("Check your credit hours.") if a student is taking more than 21 credit hours or fewer than 12 credit hours, but should print the fees anyway. A typical line of data for one student would include a student number (in four digits), the room type (R or A), the number of credit hours, and the graduating status (T or F). You may assume all inputs will be reasonable (e.g., the user will not enter a negative number of credit hours, etc.). Sample input prompts, input and output for run 1 of the program (input shown in bold blue): Enter the student number: 1234 Enter the type of room (R for regular room, A for AC): R Enter the number of credit hours: 21 Enter the graduating status (T for graduating, F for not): T 1234 your fees for this semester are: $ 3435 Sample input prompts, input and output for run 2 of the program (input shown in bold blue): Enter the student number: 4321 Enter the type of room (R for regular room, A for AC): A Enter the number of credit hours: 10 Enter the graduating status (T for graduating, F for not): F Check your credit hours 4321 your fees for this semester are: $ 2230

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def computefees Input from the user studentnumber inputEnter the student number roomtype inputEnte... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!