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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, terriblexsiren
You receive an email from an impressive-sounding stranger, professor alexander rothschild renard iii, president of the american institute for scientific political statesmen. he urges you to vote for his presidential candidate choice. this social media red flag is known as
Answers: 1
image
Computers and Technology, 22.06.2019 12:10, tragesserj
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
image
Computers and Technology, 22.06.2019 19:30, ibrahimuskalel
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
image
Computers and Technology, 24.06.2019 00:10, roxymiller3942
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
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 in other subjects:

Konu
Mathematics, 06.04.2020 01:54
Konu
Mathematics, 06.04.2020 01:55
Konu
Mathematics, 06.04.2020 01:55
Konu
Computers and Technology, 06.04.2020 01:55
Konu
Mathematics, 06.04.2020 01:55