Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Walden University Rainfall Program with Python Programming Project

Walden University Rainfall Program with Python Programming Project

Walden University Rainfall Program with Python Programming Project

Question Description

I’m working on a python exercise and need support to help me study.

Program 5: Functions

Write a program that asks the user to enter daily rainfall amounts. Your program will need to accept 20 daily rainfall inputs. Only allow non-negative rainfall amounts. When the user enters a negative number, tell them that the number is invalid, and that they should enter another, valid value.

Calculate the total rainfall and the average rainfall. Determine the largest daily rainfall and the smallest daily rainfall.

Output the total, average, largest, and smallest values using informative messages.

The following things cannot happen in the main program:

  • Accepting user input
  • Calculation of total or average – these functions should not print anything
  • Determination of largest or smallest – these functions should not print anything
  • Outputting results

Rather than doing these things in main, implement each feature in its own separate function and call each function from main.

Hints:

  • Start out by asking the user to enter just a few values rather than 20 – this is easier for repeated testing! Once the program is working, if we build it properly, it should be very easy to change the number of inputs to 20 or any other number.
  • How are we going to store several (and later, 20) values? We could declare 20 variables, but isn’t there a better way . . . ?
  • Think about which functions you are going to need. A big hint here is reading the list of things that you are not allowed to do in main. If you can’t do them in main, you’re going to need to do them in . . . ?
  • Once you identify the functions you are going to need, start thinking about parameters and return types. Which functions require which of each?
  • START EARLY ON THIS PROGRAM! If you start early and get stuck, or if you can’t figure out how to get started, that’s OK! Reach out to the tutors or myself, tell us what you have been thinking about doing and why it isn’t working, and we’ll help to get you off and running! If you wait until the last day(s) then there will be little time for the tutors or myself to help.

Please submit:

  1. a text file containing your source code (the code that you wrote – .py extension)
  2. an image (or images) showing your program running on your workstation

Rubric:

All functions implemented

50%

Main properly tests all functionality

20%

Well-formatted code (indentation, whitespace, variables, comments, etc.)

10%

Well-formatted output (columns, spacing, newlines, etc.)

10%

Screenshots showing your program running on your computer

10%

We offer the best custom essay writing services at an affordable rate. We have done this assignment before, we can also do it for you.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Essay Pillars only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Essay Pillars are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Essay Pillars is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Essay Pillars, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.