Write a program that: create a list (you an create it in code you do...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that: • create a list (you an create it in code you do not have to use input() statements) that represents the total rainfall for each of 12 months (assume that element 0 is January and element 11 is December). o The list is: 15.5, 12, 9.9, 4.67, 3.75, 0.6, 0, 0.32, 1.2, 2.9, 8.6, 12.7 • the program should calculate and display the: o total rainfall for the year; o the average monthly rainfall; o the months with the highest amount. o the months with the lowest amount. • You need to figure out how to access each element in the list, o You need to add the all up to find the total; o You need to also divide by the length of your list to get the average; o Use the min() and the max() functions to find the highest and lowest amounts. Print out statements showing the 4 required outputs (replace the ?? with amounts that are calculate by your code or months as appropriate) The total rainfall for the year: ?? inches The average rainfall per month is: ?? inches The month with the lowest rainfall is?? with ?? inches The month with the most rainfall is?? with ?? inches Write a program that: • create a list (you an create it in code you do not have to use input() statements) that represents the total rainfall for each of 12 months (assume that element 0 is January and element 11 is December). o The list is: 15.5, 12, 9.9, 4.67, 3.75, 0.6, 0, 0.32, 1.2, 2.9, 8.6, 12.7 • the program should calculate and display the: o total rainfall for the year; o the average monthly rainfall; o the months with the highest amount. o the months with the lowest amount. • You need to figure out how to access each element in the list, o You need to add the all up to find the total; o You need to also divide by the length of your list to get the average; o Use the min() and the max() functions to find the highest and lowest amounts. Print out statements showing the 4 required outputs (replace the ?? with amounts that are calculate by your code or months as appropriate) The total rainfall for the year: ?? inches The average rainfall per month is: ?? inches The month with the lowest rainfall is?? with ?? inches The month with the most rainfall is?? with ?? inches
Expert Answer:
Answer rating: 100% (QA)
Python rainfalllist 155 12 99 467 375 06 0 032 12 29 86 127 Calculate total rainfa... View the full answer
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
do the following,..... Write program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. Create program that takes in user input...
-
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...
-
Specific identification: (a) must be used under IFRS if the inventory items are not interchangeable. (b) cannot be used under IFRS. (c) cannot be used under GAAP. (d) must be used under IFRS if it...
-
Where did the original idea for the Starbucks' format come from? What lesson for international business can be drawn from this?
-
Richmond Ltd. was founded 20 years ago by its president, Daniella Richmond. The company originally began as a mail-order company but has grown rapidly in recent years, in large part due to its...
-
A tree and a pole are 3000 m apart. Each is suddenly hit by a bolt of lightning. Mark, who is standing at rest midway between the two, sees the two lightning bolts at the same instant of time. Nancy...
-
(Postretirement Benefit Expense Computation) Garner Inc. provides the following information related to its postretirement benefits for the year 2010. Accumulated postretirement benefit obligation at...
-
(c) (10 pts) Suppose that the fund manager just shorted another portfolio worth of $10 million with a beta of 1.2, what position in the futures should the fund manager take now to make the combined...
-
The Classic Furniture Company is trying to determine the optimal quantities to make of six possible products: tables and chairs made of oak, cherry, and pine. The products are to be made using the...
-
A coupon bond with a par value of $1,000 and a 10-year maturity pays semiannual coupons of $21. (a) Suppose the yield for this bond is 4% per year compounded semiannually. What is the price of the...
-
A protein molecule of human serum albumin in a physiological solution undergoes a denaturation transition with the increase in temperature. The transition happens around 70 degrees Celsius in a...
-
Explain three (3) ways the teacher assistants used daily interaction with students to demonstrate the different styles and functions of verbal communication. For each strategy used, Explain what...
-
Why did the Hawthorne studies and McGregor's Theory X and Theory Y have an impact on the study of organizational behavior? 2. Explain why and how changes in the U.S. demographics affect the...
-
Briefly explain the current procedures and process for a cruise passenger boarding/exiting a ship in Miami, Florida. Passenger is departing Toronto, Canada on the same day as the cruise departs Port...
-
Explain the trustworthiness of your findings, in terms of: Credibility Transferability Dependability strategies Confirmability Shenton, A. K. (2004).
-
Kingbird Enterprises is a large Canadian company traded on the Toronto Stock Exchange. Kingbird purchased two copyrights during 2017. The first copyright was purchased on February 1 for $20,650, and...
-
d) For die casting processes: 1. What are the most common metals processed using die casting and discuss why other metals are not commonly die casted? 2. Which die casting machines usually have a...
-
What is an adapter class? How does it make some programming tasks more convenient? Under what circumstances does the Java API provide an adapter class?
-
Write pseudocode algorithms for the programs described as follows: 1. Available Credit A program that calculates a customers available credit should ask the user for the following: The customers...
-
How is an interface different from an abstract class, or any class?
-
OMalley Corporation was incorporated and began business on January 1, 2015. It has been successful and now requires a bank loan for additional working capital to finance expansion. The bank has...
-
Presented below is information related to Viel Company at December 31, 2015, the end of its first year of operations. (a) income from operations, (b) net income, (c) net income attributable to Viel...
-
Financial Reporting Problem Marks and Spencer plc (M&S) The financial statements of M&S (GBR) are presented in Appendix A. The companys complete annual report, including the notes to the financial...
Study smarter with the SolutionInn App