Question: Please help me solving these questions by using Python 4. Budget Analysis Write a program that asks the user to enter the amount that he

Please help me solving these questions by using Python

4. Budget Analysis Write a program that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month and keep a running total. When the loop finishes, the program should display the amount that the user is over or under budget.

5. Average Rainfall Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program should first ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate twelve times, once for each month. Each iteration of 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.

6. Assuming the oceans level is currently rising at about 1.6 millimeters per year, create an application that displays the number of millimeters that the ocean will have risen each year for the next 25 years.

7. Calculating the Factorial of a Number In mathematics, the notation n! represents the factorial of the nonnegative integer n. The factorial of n is the product of all the nonnegative integers from 1 to n. For example, 7!=1234567=5,040 and 4!=1234=24 Write a program that lets the user enter a nonnegative integer then uses a loop to calculate the factorial of that number. Display the factorial.

8. Population Write a program that predicts the approximate size of a population of organisms. The application should use a prompt to allow the user to enter the starting number of organisms, the average daily population increase (as a percentage), and the number of days the organisms will be left to multiply. For example, assume the user enters the following values: Starting number of organisms: 2 Average daily increase: 30% Number of days to multiply: 10 The program should display the following table of data: Day Approximate Population 1 2 2 2.6 3 3.38 4 4.394 5 5.7122 6 7.42586 7 9.653619 8 12.5497 9 16.31462 10 21.209

9. Write a program that uses nested loops to draw this pattern: ******* ****** ***** **** *** ** *

10. Write a program that uses nested loops to draw this pattern: ## # # # # # # # # # #

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!