Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON This is a UML diagram of the FInal project. This will consist of THREE classes (not counting the MAIN). There is a BANKACCOUNT class,

image text in transcribed

PYTHON

This is a UML diagram of the FInal project. This will consist of THREE classes (not counting the MAIN). There is a BANKACCOUNT class, APPLICANT class,, and LOANCALCULATOR that HAS-A BANKACCOUNT object and APPLICANT object (aggregation).

The UML diagram shows the METHODS (green ball/red square), CONSTRUCTORS (green ball with a "C"), and INSTANCE-VARIABLES (open red square/green triangle).

Formula for the LOAN calculation attached below as a TXT file

For the BankAccount object:

  • it will have standard "Getters" & "Setters"
  • ONE "No-Arg" constructor
  • For WITHDRAW method: Make sure you DO NOT withdraw more than what is in the Balance.
  • EXTRA CREDIT (10 points) - Create a method called acctNumVerified() that verifies there is a letter in the 3rd and 7th position, and numeric values in the rest. Research online the following for Python: - isAlpha() - isNumeric()
  • There will be No-Arg constructors. All fields need to be set using "setters"

For the LoanCalculator Object

  1. Sets the 'rate', 'principal' & 'years' instance variables.
  2. FOR the two Aggregates (BankAccount obj, & Applicant obj) you cannot just make one equal to the other. INSTEAD you need to process each field: class LoanCalculator(principle, rate, years, ba, a) #ba = Bank Account - a = Account self.rate = rate; self.principal = principle; self.years = years; acct.setAcctNum(b.getAcctNum()); acct.setBalance(b.getBalance()); etc. .......
  3. The calcLoanPayment method loads the "montlyPayment" instance variable by calling the method loanCalc (be sure to pass the RATE to this method)
  4. You will need to create a LOCAL VARIABLE called bankName (String) and load with a Bank's Name (i.e.; "First National Bank") to be used in the "toString" method (below)
  5. The program will print the following: Firstname Lastname Street Address City, ST Zip Your Loan was Approved by "bankName" (variable in loan) Loan amount: $#,### For # years: At rate ##% Monthly Payment of $###.##
Final Project BANK ACCOUNT/LOAN PROJECT Applicant fName o IName o address City state a zip a acctNum o getfName). o setfName(String) BankAccount a balance o setlName(String) o getAddresso o setAddress(String) o getCty0 o setCity (String). o getState(0 o setState(String) o getzip0 o setzip String) a acctNum -init-(self) setAcctNum(String) o deposit(double) o withdraw (double) setBalance( double) o setAcctNum (String) LoanCalculator a rate a principsl a years a monthPayment oFinit (self) o calcLoanPayment(o a loanCaic( float ) Final Project BANK ACCOUNT/LOAN PROJECT Applicant fName o IName o address City state a zip a acctNum o getfName). o setfName(String) BankAccount a balance o setlName(String) o getAddresso o setAddress(String) o getCty0 o setCity (String). o getState(0 o setState(String) o getzip0 o setzip String) a acctNum -init-(self) setAcctNum(String) o deposit(double) o withdraw (double) setBalance( double) o setAcctNum (String) LoanCalculator a rate a principsl a years a monthPayment oFinit (self) o calcLoanPayment(o a loanCaic( float )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Patient Care Audit Criteria

Authors: Jean Gayton Carroll

1st Edition

0870943928, 978-0870943928

More Books

Students also viewed these Accounting questions