Question
This objective of this problem is to show that you can write programs that do simple math with Python 3.1. This is a program to
This objective of this problem is to show that you can write programs that do simple math with Python 3.1.
This is a program to compute the average annual rainfall over the last five years in Wilmington Delaware. Prompt the user for the rainfall in 2013, 2012, 2011, 2010 and 2009. Then compute the average annual rainfall and display it. Note that this problem does not require a loop. Keep it simple. Just use 5 input calls.
Your display should look like this (except years should go from 2009 to 2013). Input from the user is indicated by the red box:
What was the rainfall in 2013? 25
What was the rainfall in 2012? 26
What was the rainfall in 2011? 27
What was the rainfall in 2010? 28
What was the rainfall in 2009? 29
The average annual rainfall between 2009-2013 was 27.0 inches
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started