Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions