Answered step by step
Verified Expert Solution
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,
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 $###.##
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started