Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Arizona State University Grading Criteria & Series of Classes Lab Report

Arizona State University Grading Criteria & Series of Classes Lab Report

Arizona State University Grading Criteria & Series of Classes Lab Report

Question Description

In this lab; you will start with a template script (linked below) andcreate a series of classes to satisfy the lab prompt. There is only onepart to this lab; for details on grading criteria, see the rubric atthe bottom of this page.

NOTE: While I encourage you to use the sample outputas a guide; keep in mind that the starting values used for grading maydiffer than those in the template. Your solution should be flexibleenough to handle any reasonable starting balances and transactionamounts.

Account_incomplete.py

Bank Accounts (100 points)

  1. Define an Account class
    1. Define protected class variables to store the following
      1. Account holders name as string
      2. balance as float
      3. transaction counter as integer
    2. Define the following methods
      1. A constructor (__init__) that accepts the following values and populates appropriate class variables
        1. account holders name
        2. starting balance
      2. deposit(float)
        1. accepts a floating-point number and adds it to the balance
        2. increments the transaction counter
        3. returns the current balance
      3. withdraw(float)
        1. If the balance of the account is sufficient to withdraw funds;subtract amount from balance and return the new balance, increment thetransaction counter
        2. If the balance in the account is insufficient, do not subtract theamount and return False, do not increment the transaction counter
      4. overload len()
        1. When an Account object is used as an argument to len(), return the transaction count
      5. overload str()
        1. When an Account object is passed to str(), return the account holders name
      6. overload the equivalence operator
        1. When your Account class is used with an equivalence operator “==”compare the balance in both accounts and return True if they are equal,False if they are not equal
    3. Define a CreditAccount class that inherits from Account
      1. Add the following private class variable
        1. limit
        2. rate
      2. Override the constructor to only accept an account name
        1. the starting balance of CreditAccount should always be 0
        2. Set the limit to 1000.00 and the rate to 1.24
      3. Override the deposit method
        1. Accept a float as a single argument
        2. Subtract the amount from balance and return the new balance
          1. If subtracting the amount results in a negative number; set the balance to 0.0
        3. do not increment the transaction counter
        4. return the new balance
      4. Override the withdraw function
        1. Accept a float as a single argument
        2. If the current account balance plus this new amount is less than limit
          1. multiply the amount by the rate and add the result to balance
          2. increment the transaction counter
          3. return the new balance
        3. If the balance plus this new amount is equal to or greater than limit
          1. return False
          2. do not increment the transaction counter
    4. Define a SavingsAccount
      1. Override the Deposit function
        1. On every deposit, multiply the amount by 1.05 before adding it to balance
        2. increment the transaction counter by 1
        3. return the new balance
      2. define a function called accrue
        1. does not take any arguments from the caller
        2. multiplies the balance by 1.05
        3. does not increment the transaction counter
        4. returns the new balance

Submission

After making your modifications to the template file, rename the filein the format; “lab07-ASURITE.py” where ASURITE is your user name.Attach your py file and submit your lab before the due date.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers 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 Eminence Papers 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. Eminence Papers are known for the 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 Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20