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
-
3-37. In a motion capture study of a runner, one frame shows the subject support- ing her weight on one leg, as shown in Fig. P3.37. The length of the foot seg- ment (from ankle to toe) is 8 in. and...
-
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...
-
A piano tuner is trying to get the note A on a piano to have a frequency of exactly 440 hertz (H), or cycles per second. An electronic tuner capable of detecting a difference of x cycles per second...
-
The Metropolitan Museum of Art in New York City is one of the best in the world. Under an 1893 law, it must admit the public free of charge five days and two evenings a week. The Met has a long...
-
Ideally, the employee will choose the plan that provides the incremental cash flows (both costs and benefits) that maximize the employee's expected utility of consumption. However, there are many...
-
Assume that the United States, as a steel-importing nation, is large enough so that changes in the quantity of its imports influence the world price of steel. The U.S. supply and demand schedules for...
-
Please answer with full detail and legibility, thank you! 6x4 - 5x3 + 4x2 - 3x + 27 1. Find dx. 2x2
-
Please complete the Express Catering, Inc.s 2014 tax return based upon the information provided below. If required information is missing, use reasonable assumptions to fill in the gaps. Ignore any...
-
Gallatin Carpet Cleaning is a small, family-owned business operating out of Bozeman, Montana. For its services, the company has always charged a flat fee per hundred square feet of carpet cleaned....
-
Risk is the measure of uncertainty about the future payoffs of an investment, measured over certain time horizons and relative benchmarks. Question : Apply the definition of risk provided in the...
-
For this nominal and interval data, which graphical methods should be chosen (for example, line, bar chart, run chart)? Why is this the best option? (Please provide reference and bibliographical...
-
Based upon our discussions in class, how has the level of world democracy changed over the the last 1 5 years?
-
A stock is selling for $20 and the last dividend annual payment was $0.75. calculate the required rate of return if dividends are expected to grow at 4% per year? show work
-
Produce graphs of f that reveal all the important aspects of the curve. Then use calculus to find the following. ( Enter your answers using interval notation. Round your answers to two decimal...
-
Is a manufacturing company. It has received a special order for 6,000 units of its product TK-15. The normal selling price of one unit of TK-15 Is $64 and its unit product cost is $20 as shown below:...
-
The overall reaction and equilibrium constant value for a hydrogenoxygen fuel cell at 298 K is 2H 2 (g) + O 2 (g) 2H 2 O(l) K = 1.28 10 83 a. Calculate E cell and G 8 at 298 K for the fuel cell...
-
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...
-
When a product's cost is composed of both fixed and variable costs, what effect does the increase or decrease in production have on total unit cost?
-
Teague Corporation has the following long-term investments: 1. 60 percent of the common stock of Ariel Corporation 2. 13 percent of the common stock of Copper, Inc. 3. 50 percent of the nonvoting...
-
The stockholders equity section of Caritas Corporations balance sheet appeared as follows on December 31: Swanson Manufacturing Company owns 80 percent of Caritass voting stock and paid $11.20 per...
Study smarter with the SolutionInn App