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...
-
Show that the only vector x in R2 or R3 that is orthogonal to every other vector is the zero vector.
-
In spherical coordinate system (R,0,0) the length of a short segment is given by (ds)=(dR)+(Rd0)+(Rsin Odo)
-
L.A. Gear, a manufacturer of sports shoes and sportswear, began operations in the early 1980s. By late 1996, however, the company was in bankruptcy. Following are cash flow data for the company for...
-
Roberts Company is considering an investment in equipment that is capable of producing more efficiently than the current technology. The outlay required is $2,293,200. The equipment is expected to...
-
Lukow Products is investigating the purchase of a piece of automated equipment that will save $130,000 each year in direct labor and inventory carrying costs. This equipment costs $840,000 and is...
-
What type of web server is sending packet/frame 280 of the capture? 2. What type of HTTP Status Code is the web server in packet/frame 314 sending? Google the error and provide a quote summarizing...
-
Maggie Ltd acquired the net assets and contingent liabilities of Transfig Ltd for a purchase consideration of $240,000. Transfig Ltd had total assets of $336,000 and total liabilities of $120,000, it...
-
Capital Power has evaluated its program. Using the four levels of evaluation, determine which levels were used. Prepare an evaluation program that will assess the goals of the program and the goals...
-
Sales Total Company $508,500 Variable expenses 254,250 Raner, Harris and Chan is a consulting firm that specializes in information systems for medical and dental clinics. The firm has two offices-one...
-
Can you help me with these questions? Instructions for the Next Two Questions For Questions 14 and 15, please either upload a pdf file containing your answers or use the text entry box in Question 16...
-
A company provided the following data regarding beginning inventory and various purchases. During the year, the company sold 800 units. Therefore, 200 units remained in inventory at year-end. # of...
-
What is Preferred Stock? Discuss the characteristics of Preferred Stock over Common Stock. MINIMUM ONE PAGE REQUIREMENT. 2. What are Stock Options? Discuss the TWO primary reasons why corporations...
-
Consider the code fragment, i-1 while (i < N) do { print "Ramadan Kareem" i-2*1+1 } Let H(N) be the number of times "Ramadan Kareem!" is printed as a function of constant N. (a) Derive H(N). (b)...
-
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...
-
Hardy Instruments, Inc., is a manufacturer of various measuring and controlling instruments. Financial statement data for the firm are as follows: Required a. Using the given data, calculate ratios 1...
-
You are analyzing the performance of Jackson Corporation, a manufacturer of personal care products, for the most recent year. The following data are taken from the firm's latest annual report: In...
-
Past quarterly data are presented below for Company company's fiscal year ends on the Saturday nearest to January 31. The other company is the Gillette Company prior to its acquisition by Procter \&...
Study smarter with the SolutionInn App