### Programming Assignment ### # Complete the calc_average () and determine_grade () functions # Compare with...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
### Programming Assignment ### # Complete the calc_average () and determine_grade () functions # Compare with the expected result given in the assignment description # IMPORTANT: Before you submit, make sure your program produces the expected result # as shown in the assignment description # Do NOT change the function header calc_average() def calc_average(): gradestoavg [] total = 0 for i in range (8): gradestoavg.append(int (input("Please enter score #{}:".format(i + 1)))) total + gradestoavg[i] avg = return int (avg) def determine_grade (score): if score >= 90 and score ### Programming Assignment ### # Complete the calc_average () and determine_grade () functions # Compare with the expected result given in the assignment description # IMPORTANT: Before you submit, make sure your program produces the expected result # as shown in the assignment description # Do NOT change the function header calc_average() def calc_average(): gradestoavg [] total = 0 for i in range (8): gradestoavg.append(int (input("Please enter score #{}:".format(i + 1)))) total + gradestoavg[i] avg = return int (avg) def determine_grade (score): if score >= 90 and score
Expert Answer:
Answer rating: 100% (QA)
Heres the corrected version of the code def calcaverage gradestoavg total 0 for i in range8 grad... View the full answer
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
Henry Mueller Supply Co. sells tamperproof, normally open thermostats (i.e., thermostat closes as temperature rises). Annual cash flows are shown in the table below. Determine the future worth of the...
-
Statement of Cash Flows (Indirect Method) Use the following information regarding the Fremont Corporation to prepare a statement of cash flows using the indirect method: Accounts payable increase...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Determine whether each of these statements is true or false. a) x {x} b) {x} {x} c) {x} {x} d) {x} {{x}} e) {x} f) {x}
-
Consider two protons (charge +e), separated by a distance of 2.0 1015 m (as in a typical atomic nucleus). The electric force between these protons is equal in magnitude to the gravitational force on...
-
COM201 / In what important ways is an education preparing you for work in the health professions similar to and different from other types of formal education you could choose
-
Advanced Systems is a new company that will produce a line of high-quality wood computer desks. The companys management is working on its accounting system and has prepared the following policy for...
-
Brooks Foundry uses a predetermined overhead allocation rate to allocate overhead to individual jobs, based on the machine hours required. At the beginning of 2014, the company expected to incur the...
-
= lim h0 5 Tth +5
-
Prepare a worksheet for Altuve Co. from the following trial balance (Figure 11.9) and additional data. Additional Data A. Inventory physical count, $13 B. Store supplies on hand, $4 C. Depreciation...
-
Which form of 'gerrymander' reform involves drawing lines that most closely reflect the percentage of voters in the state as a whole? proportional gerrymandering method shortest split-line method...
-
American Heart Association (AHA): How will you communicate your measurement system throughout the firm? Who will need to be involved? How much time is likely to be required?
-
5) The excel file Surface Temperature.xls contains surface temperature variability in a 24 hour period. Determine the total energy flux density for the following the materials: steel, asphalt,...
-
Corporation Z makes a distribution of 50,000 to Marco, its only shareholder, on July 1, 2021. Marco's basis in his Z stock is 20,000. Z's current year earnings and profits are a loss of (10,000) and...
-
Research an association that you'd like to join. Report back to us the website (URL) and be sure to at leastanswer the questions: 1. Why would you want to belong to this association, 2. What do they...
-
Mr. ThomasSanderson is a single, 62 year old, hardworking, international energymarketing executive.He is employed by a large multi-national company.He earns a salary of $600,000 Canadian annually. He...
-
For-profit healthcare organization wants to maximize its return on investment (ROI) in a major equipment purchase by using a financial analysis technique that will determine the point at which the...
-
Is it ethical to provide safety training in English to immigrant workers who speak little English, in order to reduce costs?
-
Regulating Market Power in the Commons: In exercises 21.9 and 21.10, we investigated the case of many firms emitting pollution into a lake. We assumed the only impact of this pollution was to raise...
-
Since the early 1970s, the U.S. government has had a program called the Earned Income Tax Credit (previously mentioned in end-of-chapter exercises in Chapter 3.) A simplified version of this program...
-
In exercise 22.2, we showed how an efficient equilibrium with a complete set of insurance markets can be re-established with truthful signaling of information by consumers. We now illustrate that...
-
Assume that an income statement contains each of the three sections listed below. Which will be the last section presented in the income statement? a. Gross profit b. Income from continuing...
-
When constructing a common-sized income statement, all amounts are expressed as a percentage of: a. net income. b. gross profit. c. net sales. d. income from operations.
-
The current ratio of Hydro Company at December 31, 2018, calculated using the above data, was 3.13 and the company's working capital was \(\$ 170,000\). Which of the following would happen if the...
Study smarter with the SolutionInn App