Implement the corresponding withdraw method in python

Assignment Help Programming Languages
Reference no: EM133516245

Advanced Object Oriented Programming

Assume that a bank maintains the following different types of accounts for its customers:
• Current Account: A cheque book is provided for the customer and the number of cheques the customer has issued is tracked.
• Deposit Account: The number of withdrawals a customer can make is limited and no cheque book service is provided. An account under this type earns interest based on a fixed interest rate.
• Restricted Account: This is a special type of current account. The withdrawal amount in each transaction cannot exceed a pre-defined maximum withdrawal limit.
• Account with Overdraft Facility: This is also a special type of current account. The balance of such an account is allowed to be negative subject to an overdraft limit.
Each type of account has a name, account number and a balance.

(a) Develop an account class hierarchy based on the above information. Identity attributes and their types that need to be defined in each class. You can make your own assumptions to ensure that the classes work fine.

(b) For each class in your class hierarchy developed in part (a), implement the corresponding withdraw(amount) method in Python. The method should return a string that contains either information on the remaining account balance if the withdrawal is successful or an error message otherwise.

(c) Assume that a Bank class maintains an array of bank accounts (which could be of different types). The withdrawFromAccount(accountNumber, amount) method in the Bank class takes the account number and corresponding amount, to find the specified account in the array and performs a withdrawal transaction accordingly if the account is found. It will display an error message if the account is not found. Implement this method in Python and comment on how polymorphism is used in your implementation.

(d) implement deposit methods for all account types.

(e) design and implement a banking system for account management, including withdraw and deport operations.

(f) save all account information into a file or multiple files for next time access.

You submission should include:

1. A report including:
how you model and analysis the problem
UML class diagram
How you test your program
Screenshots show your test results

2. All source code

3. Saved account information file according to you test result.

Reference no: EM133516245

Questions Cloud

Criminal matter involving adult victim versus minor : Compare the functions of the victim advocate in a criminal matter involving an adult victim versus a minor.
Correctional sanctions or placement for juvenile : What are some examples of classification instruments used to determine the correctional sanctions or placement for a juvenile? How do they work?
Advantages and disadvantages of toll roads for drivers : What are the advantages and disadvantages of toll roads for drivers? Why might an individual prefer to pay a toll than use a free road?
What law gave women and minorities full fledge opportunity : What law gave women and minorities a full fledge opportunity to become police patrol officers?
Implement the corresponding withdraw method in python : NIT5150 Advanced Object Oriented Programming, Victoria University - Develop an account class hierarchy based on the above information. Identity attributes
Discuss a few of the divergences between the two schools : Discuss a few of the divergences between the two schools. Do you think we should throw out the assumptions of the neo classicals entirely.
Differences between standard and special conditions : Explain the differences between standard and special conditions that can be attached to the terms of probation.
Identify speaking and listening communication issues : Identify speaking and listening communication issues that may arise due to bias or stereotyping related to the history of Chinese immigrants to United States
Write argument stare decisis : Write an argument stare decisis. Then discuss a US Supreme Court case that followed it or didn't, depending on your argument.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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