Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Create a Java program that demonstrates the application of the fundamental concepts of object-oriented programming (OOP), and advanced programming concepts. A small financial
1. Create a Java program that demonstrates the application of the fundamental concepts of object-oriented programming (OOP), and advanced programming concepts. A small financial institution (FI) has decided to convert their Debit and Credit cards account system to a fully Object Oriented (OO) System using Java environment. Currently, the FI's system keeps the account details separated by types; Credit and Debit. Both accounts have attributes Card No and Card Balance. Credit Card has credit limit and Debit Card has variable monthly interest income rate. Example data for credit card accounts Initial balance = $0 Initial balance = $0 Credit Card 1 AC No = C1111 Credit Card 2 AC No C2222 Debit Card 1 AC No = D3333 Debit Card 2 AC No D4444 Example data for debit card accounts Initial balance = $5,000.00 Account No Balance Interest Rate To test the validity of the OOP structures, few transactions such as purchase, deposit, withdraw, and monthly interest earned should be conducted in the overall solution. Output Examples Account setup output (without your own attributes & subclass) screen example ***** CREDIT CARD ACCOUNT ***** Account No Balance Credit Limit ***** CREDIT CARD ACCOUNT ***** Account No : C2222 Balance : $0 Credit Limit : $5000 ***** DEBIT CARD ACCOUNT ***** Account No Balance Interest Rate : C1111 : $0 : $10000 : D3333 : $5000 Credit Limit= $10,000 Credit Limit= $5,000 : 0.003 ***** DEBIT CARD ACCOUNT ***** Interest Rate = 0.3% Initial balance = $10,000.00 Interest Rate = 0.5% : D4444 : $10000 : 0.005 Sample transactions output (without your own attributes & subclass) screen example Purchase $2000 using C1111 Purchase $3000 using C1111 Purchase $6000 using C2222 Purchase $500 using C2222 Payment $500 to C2222 Purchase $1000 using D3333 Deposit $2000 to D3333 Withdrawal $9000 from D3333 Rejected. Rejected Purchase $11000 using D4444 - Rejected Deposit $2000 to D4444 Purchase $11000 using D4444 Update monthly interest for D3333 Update monthly interest for D4444 : C2222 : $0 ***** CREDIT CARD ACCOUNT ***** Account No : C1111 Balance : $5000 Credit Limit : $10000 ***** CREDIT CARD ACCOUNT ***** Account No Balance Credit Limit : $5000 ***** DEBIT CARD ACCOUNT ***** Account No : D3333 Balance : $6018 Interest Rate : 0.003 ***** DEBIT CARD ACCOUNT ***** Account No : D4444 Balance : $1005 Interest Rate : 0.005 Your program must demonstrate/contain the followings concepts/keywords/tasks: a) Instantiation - The main program should instantiate of the four (4) objects above, and an instantiation of 1 (one) object from an additional subclass. b) Encapsulation - All attributes must be fully encapsulated. c) Inheritance Provide one (1) superclass, and two (2) subclasses, and one (1) subclass of a subclass. Each class must have at least one (1) attribute. Do add necessary subclass and attributes to fulfill these requirements. d) polymorphism - There should be one (1) instance of method overriding. e) Interface There should be at least one (1) interface with one (1) method implemented to the superclass. f) Based on the program, draw a full UML class diagram.
Step by Step Solution
★★★★★
3.27 Rating (150 Votes )
There are 3 Steps involved in it
Step: 1
The problem statement given has multiple ambiguties like it says to write Java program but in descriptio it says Python So based on the requirements in the last Ive implemented it in Java Also the val...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