subject

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).
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:
total rainfall for the year;
the average monthly rainfall;
the months with the highest amount.
the months with the lowest amount.
You need to figure out how to access each element in the list,
You need to add the all up to find the total;
You need to also divide by the length of your list to get the average;
Use the min() and the max() functions to find the highest and lowest amounts.
There is a video that talks about the min and max functions.
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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Is the process of organizing data to reduce redundancy. a. normalization b. primary keying c. specifying relationships d. duplication
Answers: 1
You know the right answer?
Write a program that: create a list (you an create it in code you do not have to use input() statem...
Questions
question
Mathematics, 28.05.2021 20:20
question
Mathematics, 28.05.2021 20:20
question
Mathematics, 28.05.2021 20:30
question
Mathematics, 28.05.2021 20:30
question
Mathematics, 28.05.2021 20:30
Questions on the website: 13722363