Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python b.) Your second program will accept weather data from the user and output the total rainfall and average rainfall during the period. First,

Use Python

image text in transcribedimage text in transcribed

b.) Your second program will accept weather data from the user and output the total rainfall and average rainfall during the period. First, it should ask the user to input the number of days of weather data they have. Then for each day the program should ask for the daily rainfall (and when you ask for each day's rainfall I want your output statement to include the day number as I show below). Finally, your program should output the total rainfall and the average daily rainfall for the period. Here is some sample output: How many days of weather data do you have? 3 What is the rainfall for day 1? 0.13 What is the rainfall for day 2? 0 What is the rainfall for day 3? 0.35 The total rainfall for the period was 0.48 The average rainfall for the period was 0.16 b) Rainfall. Comment at the top with your name and a general description of your program (1 point) The print statement that prompts the user for daily rainfall data must include the day number in it (1 point). Style. Including descriptive variable names, clear print statements, and strategic use of white space. (2 points) Correct functionality (6 points)

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions