1. Create a Java program that demonstrates the application of the fundamental concepts of object-oriented programming...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Let r and s be solutions to the quadratic equation x 2 b x + c = 0. For n N, define d0 = 0 d1 = r s dn = b dn1 c dn2 (n 2) Prove that dn = r n s n for all n N. [4 marks] (b) Recall that a commutative...
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
Scranton Refrigeration Corporation began operations at the beginning of the current year. One of the companys products, a compressor, sells for $370 per unit. Information related to the current years...
-
Compare the circular-wait scheme with the various deadlock-avoidance schemes (like the banker's algorithm) with respect to the following issues: a. Runtime overheads b. System throughput
-
The state of north Arizona had 11,450 food service business in 2017 a dentist rate of 0.84 per 1000 people and a total smoker percentage of 17.6. Recent changes in public health policy have led to...
-
How are the limits on using eco-efficiency indicators related to accounting?
-
A U.S.-based MNC has a subsidiary in France (local currency, euro, ¬). The balance sheet and income statement of the subsidiary follow. On December 31, 2112, the exchange rate is US$1.20/¬....
-
(b) Rose White Co. Bought goods from Ross Blue Co of Denmark on 31st May 2022. The invoice value is DM 840,000 and was due for settlement in equal installments on 30th June and 31st October 2022. The...
-
The gecko is a reptile with an amazing ability to climb smooth surfaces, including glass. Recent discoveries indicate that geckos stick to smooth surfaces via van der Waals interactions between...
-
A reference person weighs 70 kg and contains, among other elements, 18% carbon and 0.2% potassium. How many microcuries of 14 C and of 40 K will be present in such a person?
-
A machine will cost 80 000. It has an expected life of four years with an anticipated scrap value of 80 000. Expected net operating cash inflows each year are as follows: 1 20 000 2 30 000 3 40 000 4...
-
Discuss each structure's requirements and the advantages and potential disadvantages of each common types of organizationalstructuresallowed by HIPAA. This includes a standard covered entity, an...
-
Michael Soe, age 14, took his father's Beretta 92 Compact L handgun from a camera bag and replaced its loaded ammunition magazine with an empty one. Unbeknownst to Michael, a cartridge remained in...
-
If 5x+2x+xy = 5 and y(5) = 26, find y'(5) by implicit differentiation.
-
Review the process of voir dire. When questioning a potential juror in voir dire, what are some of the personality traits and characteristics the attorneys are trying to determine prior to trial?...
-
Rondo Form is a type of musical structure, in which there is a recurring theme/refrain . Your job is to determine whether a given input is a valid Rondo Form or not. Here are the rules for valid...
-
Chicago Company sold merchandise to a customer for $1,500 cash in a state with a 6% sales tax rate. The total amount of cash collected from the customer was $558. $600. $642. $636. Nevada Company...
-
Write a program that simulates a bouncing ball by computing its height in feet at each second as time passes on a simulated clock. At time zero, the ball begins at height zero and has an initial...
-
Write a program that uses the Purchase class in Listing 5.13 to set the following prices: Oranges: 10 for $2.99 Eggs: 12 for $1.69 Apples: 3 for $1.00 Watermelons: $4.39 each Bagels: 6 for $3.50 Then...
-
Add methods to the Person class from Self-Test Question 16 to perform the following tasks: Set the name attribute of a Person object. Set the age attribute of a Person object. Test whether two Person...
-
a. Examine how each of the following affects the natural unemployment rate. (i) The discovery of new energy resources lowers the price of energy, stimulating more industrial activities. (ii) The...
-
In a particular economy the negative oil price shock occurs in two different time periods, say 1990-1995 and 2000-2005. Assume that these two oil price shocks are similar in nature. Given the same...
-
In this problem you are asked to show that the expectations-augmented Phillips curve (derived in the text using the extended classical model) can be derived using the Keynesian model. Consider a...
Study smarter with the SolutionInn App