Question: Your program must contain a standard heading once at the top of your program as follows: Your full name: Date of completion: Brief explanation of

Your program must contain a standard heading once at the top of your program as follows:

  • Your full name:
  • Date of completion:
  • Brief explanation of the program:

A. Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program asks the user for the number of years. The outer loop will iterate once for each year. The inner loop will iterate 3 times. Each iteration on the inner loop will ask the user for the inches of rainfall for that month. After all iterations, the program should display the number of months, the total inches of rainfall, and the average rainfall per month for the entire period.

Complete the following questions using Python.

B. Write a program that accepts two integers from a user and then uses a function mx to find out the larger number.

Write a function named mx that accepts two integer values as arguments and returns the value that is greater of the two.

The program should print the greater number.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!