Write program that allows user to enter the total rainfall

Assignment Help Python Programming
Reference no: EM132295296

Assignment -

Write a program that allows the user to enter the total rainfall for each of 12 months into an array. The program should then calculate the following metrics from the array:

The total rainfall for the year.

The average monthly rainfall.

The month with the highest rainfall amount.

The month with the lowest rainfall amount.

Please note, you will need to devise a way to keep track of which month names go to which rainfall values. You may not hard code the month names into the print statements for the last two bullet points

Data:

January 7.9 inches

February 10.1 inches

March 3.4 inches

April 6.7 inches

May 8.9 inches

June 9.4 inches

July 5.9 inches

August 4.1 inches

September 3.7 inches

October 5.1 inches

November 7.2 inches

December 8.3 inches

Note - REMEMBER to put your name in the lab with comments, and write comment your code.

Verified Expert

This assignment is of python programming to implements the list to store months name and monthly rainfall in each month. The program then uses the loop to find the highest and lowest rainfall in year and also find the average rainfall of the year.

Reference no: EM132295296

Questions Cloud

Case study james o toole : A team of researchers recently published findings from a series of studies designed to shed light on the moral psychology of whistle-blowing
Describe the role of division of labor and hierarchy : 1. Describe the role of division of labor and hierarchy ay Honest Tea.
Identify stakeholders for budget discussions : Identify stakeholders for budget discussions involving sales and production cost centres.
Discuss how you would go about examining the validity : What measures you would implement on an ongoing basis to prevent a recurrence of the "never event".
Write program that allows user to enter the total rainfall : Write a program that allows the user to enter the total rainfall for each of 12 months into an array. Calculate the total rainfall for the year
Discuss innovation and diversification : Discuss and explain how the strategies discussed in prior weeks are converted into implementation activities both domestically and internationally.
Evaluate the appropriateness of this theory for the model : Determine the theory or model you would use to support this program and why. Evaluate the appropriateness of this theory or model for the culture.
Review problem of leading and managing the hr project : Continuing from the previous assignment, it is now important to consider your approach to leading and managing your HR project. Tightly structured projects.
Discuss the philosophy of public health education : Begin to draft your own personal philosophy of public health education practice and the approaches you will use in your work.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd