3. What is the output of the following program of the inputs are: 65, 75, 86,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. What is the output of the following program of the inputs are: 65, 75, 86, 94, and 55? def main (): scorel = int (input ("Enter score #1: ")) score2 = int (input ("Enter score #2: ")) score3 = int (input ("Enter score #3: ")) score 4 int (input ("Enter score #4: ")) score5 int (input ("Enter score #5: ")) average = avg (scorel, score2, score3, score 4, score5) print (" Average ", average) print (" Letter grade is: ", Letter grade (average)) def avg (s1, s2, s3, s4, s5): sum s1 s2 + s3 +s4 + s5 = average = sum/5. return = rage def Letter grade (a): if a > 90: wwwwaar wwwww else: return 'A' elif a >= 80: return 'B' umm elif a >= 70: return 'C' elif a >= 60: return 'D' main () return 'F' Output: 3. What is the output of the following program of the inputs are: 65, 75, 86, 94, and 55? def main (): scorel = int (input ("Enter score #1: ")) score2 = int (input ("Enter score #2: ")) score3 = int (input ("Enter score #3: ")) score 4 int (input ("Enter score #4: ")) score5 int (input ("Enter score #5: ")) average = avg (scorel, score2, score3, score 4, score5) print (" Average ", average) print (" Letter grade is: ", Letter grade (average)) def avg (s1, s2, s3, s4, s5): sum s1 s2 + s3 +s4 + s5 = average = sum/5. return = rage def Letter grade (a): if a > 90: wwwwaar wwwww else: return 'A' elif a >= 80: return 'B' umm elif a >= 70: return 'C' elif a >= 60: return 'D' main () return 'F' Output:
Expert Answer:
Answer rating: 100% (QA)
The Python program in the image calculates the average of five scores and then determines the corres... View the full answer
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Posted Date:
Students also viewed these programming questions
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
Suppose PFT is considering implementing a new energy efficiency measure (EEM). The EEM involves sensors that cost $4761 in total to install, and are expected to last 15 years. Savings are identical...
-
Identify each of the following items as revenues, expenses, or withdrawals from the drop down provided. 1. Advertising expense 2. Consulting revenue 3. Rent expense 4. Rental income 5. Wages expense...
-
1. The time t (in years) for the world population to double when it is increasing at a continuous rate r (in decimal form) is given by t = (ln 2)/r. (a) Complete the table and interpret your results....
-
The following balances were taken from the general ledger of Holland Company on January 1, 2012: During 2012, the company completed the following transactions: a. Purchased inventory for $95,000 on...
-
Describe what happens to a bar magnet placed in the nonuniform external magnetic field shown in Figure P27.11. Data from Figure P27.11 Figure P27.11 SN
-
Burklin, Inc., has earnings of $18 million and is projected to grow at a constant rate of 5 percent forever because of the benefits gained from the learning curve. Currently, all earnings are paid...
-
One key feature of Sage 50 Accounting software, it implements user access controls to restrict access to sensitive financial data. Maintain the security of financial information with password...
-
Frank Thompson operates a small business that manufactures oversized backyard games. He runs the business as a sole proprietorship. The company uses a job order cost system using a first-in,...
-
A spherical beach pebble is completely submerged under sea water of mass density (not weight density!) 1041 kg/m3. The water exerts an upward buoyant force of magnitude 181 N on the pebble. What is...
-
Jeff buys 100 shares of ABC stock for $45 a share. The value of the stock rises to $50 per share. He sells 50% of his stock and keeps the rest hoping it will continue to increase in value. What is...
-
Jake just uncovered a signed baseball worth $950,000, according to Ebay. He found out his grandpa originally purchased it for $50,000. Assuming a rate of return of 8.5% per year, how many years had...
-
MACS use the Medicare Code Edit (MCE) and the Outpatient Code Edit (OCE) . Determine the amount of payment for the claim Ensure the claims submitted by facilities and providers are error-free Detect...
-
Develop an audit program describing testing procedures, audit evidence, and sample methodology.?
-
Tanny Company produces a finished product requiring direct materials to be added at uneven intervals during production. Direct materials are added only in Department A. The schedule o when direct...
-
fill the table Hormone Organ the secretes Target tissue(s) Main effects hormone Antidiuretic hormone Oxytocin Thyroid stimulating hormone Adrenocorticotropic hormone
-
Big Jim Company sponsored a picnic for employees and purchased a propane grill equipped with a standard-sized propane tank for the picnic. To make sure there was enough propane for all the cooking...
-
What is the output of the following program?
-
Write a method called pow that accepts a base and an exponent as parameters and returns the base raised to the given power. For example, the call pow(3, 4) should return 3 * 3 * 3 * 3, or 81. Assume...
-
The java.util package has an interface called ListIterator that extends the Iterator interface and includes additional methods that are specific to iterating through the elements of lists forward or...
-
What is the genetic code? a. The relationship between a three-base codon sequence and an amino acid or the end of translation b. The entire base sequence of an mRNA molecule c. The entire sequence...
-
Lets suppose a researcher mixed together nucleotides with the following percentages of bases: 30% G, 30% C, and 40% A. If RNA was made via polynucleotide phosphorylase, what percentage of the codons...
-
If a tRNA has an anticodon with the sequence 3-GAC-5, which amino acid does it carry? a. Aspartic acid c. Leucine b. Valine d. Glutamine
Study smarter with the SolutionInn App