Write a Python program, in a file called compute_fees.py, to solve the following problem: Charles Babbage...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
def computefees Input from the user studentnumber inputEnter the student number roomtype inputEnte... View the full answer
Related Book For
Cost Management Accounting and Control
ISBN: 978-0324559675
6th Edition
Authors: Don R. Hansen, Maryanne M. Mowen, Liming Guan
Posted Date:
Students also viewed these programming questions
-
Suppose that Betty's Beads is a typical firm operating in a perfectly competitive market. Currently Betty's MR = $12, MC = $12, ATC = $15, and AVC = $8. Based on this information, we can conclude that
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
KEA10. LO 16.3 Use the following excerpts from Fruitcake Company's financial records to determine net cash flows from investing activities. Acquired new plant assets Collected interest on investment...
-
Explain what useful new elements can be incorporate into Online dating business model?
-
What is the difference between intelligence and design in decision making?
-
Ruth Corporation had the following payroll for April: Required Prepare journal entries on April 30 to record: a. Accrual of the monthly payroll. b. Payment of the net payroll. c. Accrual of...
-
Cosi Company reported net income of $190,000 for 2014. Cosi also reported depreciation expense of $35,000 and a loss of $5,000 on the disposal of plant assets. The comparative balance sheet shows an...
-
You have been hired as a capital budgeting analyst by a sporting goods firm that manufactures athletc shoes and has captured 1 0 % of the overall shoe mar - ket. ( The tors paured 1 0 9 o h $ 1 0 0...
-
Sebastian Trains Co (ST) is a UK based rail operating company which holds three UK rail franchises. The franchises allow ST to run trains on the rail network in a particular geographical area within...
-
1. Decreasing the expected population deviation rate from 1% to 0.5% will cause the sample size to: Decrease Increase 2. Decreasing the tolerable deviation rate from 5% to 4% will cause the sample...
-
Requirement 1. Calculate Muscateer Corp's trend analysis for revenue and net income. Use 2023 as the base year and round to the nearest percent. Begin by calculating Muscateer Corp 's trend analysis...
-
The American economy of the1920s was a mixed bag for organized labor and workers. Organized labor had achieved many of the goals it had fought for in the late 18th and early 20th centuries; the...
-
Your company began operations on the first day of the current month. Journal entries for the first month follow. Account Cash Debit 150,000 Credit Common stock 150,000 Land 95,000 Equipment 55,000...
-
What are the 3 basic components of every nucleotide? a. Write the complementary base sequence for the above sequence of DNA. b. Write the m RNA sequence for the original sequence of DNA.
-
How can leaders develop and maintain expert power in an ever-changing world where knowledge and expertise are constantly evolving. How do the Five Bases of Power apply to different contexts, such as...
-
How do environmental laws/regulations protect humans and/or environment? What is the best compliance method or strategy for enforcement of environmentallaws/regs? Describe a positiveoutcome to...
-
When an electric field is applied to a shallow bath of vegetable oil, why do tiny bits of thread floating in the oil align with the field like compasses in a magnetic field?
-
A hospital is considering the possibility of two new purchases: new X-ray equipment and new biopsy equipment. Each project would require an investment of $750,000. The expected life for each is five...
-
What is an operational productivity measure? A financial measure?
-
Consider the following quality improvement strategy as expressed by a series of if-then statements: If design engineers receive quality training, then they can redesign products to reduce the number...
-
Consider the following accounting principles: 1. Entity principle 2. Revenue recognition principle 3. Matching concept Define these accounting principles. Discuss how these principles relate to one...
-
Key Performance Indicators: The Income Statement. Describe or define the following key performance indicators (KPIs) from the income statement: 1. Operating revenue 2. Gross profit 3. Operating...
-
The return on shareholders equity ratio can be decomposed into three separate financial ratiosthe return on sales, asset turnover, and financial leverage. Define each of the ratios assuming the firm...
Study smarter with the SolutionInn App