Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Python Expert

Question: Using the For.. loop, Write a program to ask the user for 7 deposits. As the user enters a deposit amount, update the balance using accumulation concept.

Also, keep a count of the number of deposits over or equal to 1000 dollars, between 500 and 999 dollars, between 100 and 499 dollars and between 0 and 99

Display the count in each of the above groups and final balance.

Mimir Requirements: The file name must be Module4Homework2.py

Here is the sample input and output.

Please enter your deposit amount: 1000

Please enter your deposit amount: 800

Please enter your deposit amount: 400

Please enter your deposit amount: 200

Please enter your deposit amount: 30

Please enter your deposit amount: 4000

Please enter your deposit amount: 688

You have 2 deposit over or equal to 1000 dollars.

You have 2 deposit between 500 and 999 dollars.

You have 2 deposit between 100 and 499 dollars.

You have 1 deposit below 100 dollars.

Your balance is : 7118

Another Sample Input output.

Please enter your deposit amount: -20

You entered a wrong amount!

Please enter your deposit amount: 2000

Please enter your deposit amount: 900

Please enter your deposit amount: 400

Please enter your deposit amount: 10

Please enter your deposit amount: 899

Please enter your deposit amount: 2000

You have 2 deposit over or equal to 1000 dollars.

You have 2 deposit between 500 and 999 dollars.

You have 1 deposit between 100 and 499 dollars.

You have 1 deposit below 100 dollars.

Your balance is : 6189

Python, Programming

  • Category:- Python
  • Reference No.:- M92848720
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Python

Learning outcomes lo3 - research develop and document a

Learning Outcomes LO3 - Research, develop, and document a basic security policy, and analyse, record, and resolve all security incidents LO4 - Identify and assess the threats to, and vulnerabilities of networks Assessmen ...

Tasksdemonstrate data scraping of a social network of

Tasks Demonstrate data scraping of a social network of choice. Develop technical documentation, including the development of the code & detailing the results. Provide a report on the findings, that includes research into ...

Architecture and system integrationcase study queensland

Architecture and System Integration Case Study: Queensland Health - eHealth Investment Strategy After evaluating various platforms, Queensland Health finally decided to adopt a Service Oriented Architecture (SOA) for its ...

Sieve of eratosthenes in pythonthe goal is to find all the

Sieve of Eratosthenes (in Python) The goal is to find all the prime numbers less than or equal to some natural number maxn. We have a list that tells us if any of the numbers 0..maxn are "marked". It can be an array of b ...

Part i the assignment filesone of the most important

Part I: The Assignment Files One of the most important outcomes of this assignment is that you understand the importance of testing. This assignment will follow an iterative development cycle. That means you will write a ...

The second task in this assignment is to create a python

The second task in this assignment is to create a Python program called pancakes.py that will determine the final order of a stack of pancakes after a series of flips.(PYTHON 3) Problem Task In this problem, your input w ...

Foundations of programming assignment - feduni bankingthis

Foundations of Programming Assignment - FedUni Banking This assignment will test your skills in designing and programming applications to specification. Assignment Overview - You are tasked with creating an application t ...

Simple python traffic lightswrite a program that simulates

Simple Python (Traffic lights) Write a program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green. When a radio button is selected, the light is turned on, and onl ...

Question a software company sells a package that retails

Question : A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 - 19 20% 20 - 49 30% 50 - 99 40% 100 or more 50% Write a program usi ...

Assignment1 utilising python 3 build the following

Assignment 1. Utilising Python 3 Build the following regression models: - Decision Tree - Gradient Boosted Tree - Linear regression 2. Select a dataset (other than the example dataset given in section 3) and apply the De ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As