Question: 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,

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
- Sets the 'rate', 'principal' & 'years' instance variables.
- 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. .......
- The calcLoanPayment method loads the "montlyPayment" instance variable by calling the method loanCalc (be sure to pass the RATE to this method)
- 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)
- 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
Get step-by-step solutions from verified subject matter experts
