You have a professor that doesn't trust iCollege to compute final grades correctly, but, for some...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You have a professor that doesn't trust iCollege to compute final grades correctly, but, for some reason, she is going to trust you to write a program to do it. Please don't let her down! She wants to be able to enter a student's name, the course id, and their homework, test and lab averages as floating point numbers. The weights of each grade component are different in each course: Course CS4520 CS2510 CS1301 Homework 30% 45% 20% Homework Avg: 95.0 Test Avg: 22.3 Lab Avg: 99.5 Course: CT701 CT701 - no such course. >>>%Run grade.cale.py Name: Raffaello Sanzio Homework Avg: 100.0 Test Avg: 94.32 Lab Avg: 88.0 Course: CS1301 Final grade for Raffaello Sanzio in CT301 is 91.98 >>>%Run grade calc.py Name: Leonardo DaVinci Test 50% 40% 25% Lab 20% After calculating the final grade, the program should print Final grade for NAME in COURSE is GRADE, but if the course id entered is not one of the 3 given in the table, the program should print COURSE - no such course (where NAME and COURSE are the entered values, and GRADE is the calculated value). The final grade should be printed with 2 digits after the decimal point. Your program file should be named grade_calc.py. Here is an example showing the exact prompts and output required: 15% 55% You have a professor that doesn't trust iCollege to compute final grades correctly, but, for some reason, she is going to trust you to write a program to do it. Please don't let her down! She wants to be able to enter a student's name, the course id, and their homework, test and lab averages as floating point numbers. The weights of each grade component are different in each course: Course CS4520 CS2510 CS1301 Homework 30% 45% 20% Homework Avg: 95.0 Test Avg: 22.3 Lab Avg: 99.5 Course: CT701 CT701 - no such course. >>>%Run grade.cale.py Name: Raffaello Sanzio Homework Avg: 100.0 Test Avg: 94.32 Lab Avg: 88.0 Course: CS1301 Final grade for Raffaello Sanzio in CT301 is 91.98 >>>%Run grade calc.py Name: Leonardo DaVinci Test 50% 40% 25% Lab 20% After calculating the final grade, the program should print Final grade for NAME in COURSE is GRADE, but if the course id entered is not one of the 3 given in the table, the program should print COURSE - no such course (where NAME and COURSE are the entered values, and GRADE is the calculated value). The final grade should be printed with 2 digits after the decimal point. Your program file should be named grade_calc.py. Here is an example showing the exact prompts and output required: 15% 55%
Expert Answer:
Answer rating: 100% (QA)
Create a Python program named gradecalcpy to calculate and display the final grade based on the g... View the full answer
Related Book For
Managerial Accounting
ISBN: 978-1259307416
16th edition
Authors: Ray Garrison, Eric Noreen, Peter Brewer
Posted Date:
Students also viewed these programming questions
-
Consider a Carnot heat engine placed between a finite thermal energy source and an infinite thermal energy sink. Since the temperature of the thermal source is constantly changing, then so must the...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
I have this data frame with the years and values, can you make a model to predict the value of meats,fish,fruits and vegetables and grains? based on the current values of the table and historical...
-
UV light causes sunburn, whereas visible light does not. Suggest a reason.
-
If a petty cash fund is established in the amount of $250, and contains $151 in cash and $95 in receipts for disbursements when it is replenished, the journal entry to record replenishment should...
-
Describe the various roles of advanced practice nurses.
-
Near the end of its first year of operations, December 31, 2018, Creative Designs Ltd. approached the local bank for a $20,000 loan and was asked to submit financial statements prepared on an accrual...
-
Question -The US Trade Deficit - Is it Good or Bad for the US Economy? If so what's the reason?
-
Alex Vera organized Succulent Express at the beginning of February 20Y4. During February, Succulent Express entered into the following transactions: a. Terry Mason invested $30,000 in Succulent...
-
Warnock Corporation is estimating its cost of preferred stock. It has outstanding a $100 face value issue that pays a $9 annual dividend and is currently selling for $85.00. Warnock would pay a 7%...
-
Identify and discuss three situations in which a partner recognizes gain (income) or loss on the receipt of an interest in partnership capital and profits.
-
How are S corporations taxed by states?
-
Define a Type C reorganization and explain its unique requirements.
-
What tax benefits are embodied in specific legacies and bequests?
-
What is included in Section 1231 property?
-
A family that run a cropping farm wish to expand their business. A neighbour offers them an area of 200 hectares. The amount of rent per annum for 5 years is K 6,500 per hectare. The family decide to...
-
An item of depreciable machinery was acquired on 1 July 2009 for $120,000 by cash It is expected to have a useful life of 10 years and zero salvage value On 1 July 2012, it was decided to revalue the...
-
Below are several transactions that took place in Seneca Company last year: a. Paid suppliers for inventory purchases. b. Bought equipment for cash. c. Paid cash to repurchase its own stock. d....
-
Ray Company provided the following excerpts from its Production Department's flexible budget performance report: Required: Complete the Production Department's Flexible Budget Performance Report by...
-
Woodbury Hospital has three service departments and three operating departments. Estimated cost and operating data for all departments in the hospital for the forthcoming quarter are presented in the...
-
Study Figure 13.6. Write a short report on Bayers management of its cash flows over the period reported. Figure 13.6 Bayer Group's consolidated statement of cash flows Income after taxes Income taxes...
-
Expenses and revenues are subjective; cash flows are facts. Therefore cash flow statements cannot mislead. Discuss.
-
Repeat Exercise 13.3, but this time work on the assumption that non-current assets that had originally cost :30,000, with accumulated depreciation of :12,000, had been sold during the year ended 31...
Study smarter with the SolutionInn App