Your task is to create simple deposit/credit calculator for different type of banks; Structure of your...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Your task is to create simple deposit/credit calculator for different type of banks; Structure of your project is following: Package "Bank": Calculator.java, National Bank.java, Second TierBank.java; root of src folder: "main.java"; More in details about each java file: 1. main.java You are going to use your main class in order to test your application (creation of necessary objects, method invocation and so on) and to provide user with simple interaction via console (use "switch" to choose between options/invocation of certain methods with necessary parameters that you will get from scanner); 2. NationalBank.java • Has fixed field fixed BankReward which is equal to 1% (think about how to make that field constant and about its data type); field is private; reward is given for deposits that longer than a year; • Has reference to instance of Calculator object which is instantiated within the constructor of National Bank class; field is private; • Has method "calculateDeposit" which calculates deposit revenue for a different type of clients: "individual" and "legalEntity"; since we don't have such objects for clients, think which data type to choose; method should be safe from overriding Method also gets amount of money, and duration in months as parameters; However, whole calculations proceed on Calculator object; • Has method "calculateCredit" which calculates amount of credit return for a different type of clients: "individual" and "legalEntity"; since we don't have such objects for clients, think which data type to choose; method could be overridden; Method also gets amount of money, and duration in months as parameters; However, whole calculations proceed on Calculator object; 3. Second TierBank.java Class extends from NationalBank.java; • Has fixed field fixed BankReward which is equal to 2% (think about how to make that field constant and about its data type); field is private; reward is given for deposits that longer than a year; ● Has fixed field fixed InterestRate which is equal to 3% (think about how to make that field constant and about its data type); field is private; field is used in calculation of credits; • Has reference to instance of Calculator object which is instantiated within the constructor of Second TierBank class; field is private; Inherits method "calculateDeposit"; Inherits and overrides method "calculateCredit" which calculates amount of credit return for a different type of clients: "individual" and "legal Entity"; since we don't have such objects for clients, think which data type to choose; Method also gets amount of money, and duration in months as parameters; However, whole calculations proceed on Calculator object then uses fixed InterestRate to return overall sum; 4. Calculator.java Your task is to create simple deposit/credit calculator for different type of banks; Structure of your project is following: Package "Bank": Calculator.java, National Bank.java, Second TierBank.java; root of src folder: "main.java"; More in details about each java file: 1. main.java You are going to use your main class in order to test your application (creation of necessary objects, method invocation and so on) and to provide user with simple interaction via console (use "switch" to choose between options/invocation of certain methods with necessary parameters that you will get from scanner); 2. NationalBank.java • Has fixed field fixed BankReward which is equal to 1% (think about how to make that field constant and about its data type); field is private; reward is given for deposits that longer than a year; • Has reference to instance of Calculator object which is instantiated within the constructor of National Bank class; field is private; • Has method "calculateDeposit" which calculates deposit revenue for a different type of clients: "individual" and "legalEntity"; since we don't have such objects for clients, think which data type to choose; method should be safe from overriding Method also gets amount of money, and duration in months as parameters; However, whole calculations proceed on Calculator object; • Has method "calculateCredit" which calculates amount of credit return for a different type of clients: "individual" and "legalEntity"; since we don't have such objects for clients, think which data type to choose; method could be overridden; Method also gets amount of money, and duration in months as parameters; However, whole calculations proceed on Calculator object; 3. Second TierBank.java Class extends from NationalBank.java; • Has fixed field fixed BankReward which is equal to 2% (think about how to make that field constant and about its data type); field is private; reward is given for deposits that longer than a year; ● Has fixed field fixed InterestRate which is equal to 3% (think about how to make that field constant and about its data type); field is private; field is used in calculation of credits; • Has reference to instance of Calculator object which is instantiated within the constructor of Second TierBank class; field is private; Inherits method "calculateDeposit"; Inherits and overrides method "calculateCredit" which calculates amount of credit return for a different type of clients: "individual" and "legal Entity"; since we don't have such objects for clients, think which data type to choose; Method also gets amount of money, and duration in months as parameters; However, whole calculations proceed on Calculator object then uses fixed InterestRate to return overall sum; 4. Calculator.java
Expert Answer:
Answer rating: 100% (QA)
basic implementation of the required classes based on your specifications Calculatorjava package Bank public class Calculator public double calculateDepositdouble amount int durationMonths double inte... View the full answer
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Hyten Corporation On June 5, 1998, a meeting was held at Hyten Corporation, between Bill Knapp, Director of Marketing/Sales, and John Rich, director of engineering. The purpose of the meeting was to...
-
Slip Systems had no short-term investments prior to 2015. It had the following transactions involving short-term investments in available-for-sale securities during 2015. Feb. 6 Purchased 3,400...
-
A pilot performs an evasive maneuver by diving vertically at 270 m / s. If he can withstand an acceleration of 8.0 g's without blacking out, at what altitude must he begin to pull his plane out of...
-
Can business management be called a profession? Why or why not? Do some external research in answering this question.
-
Based on the design, briefly discuss the data collection procedures to be used. Be sure to include the area rea of focus and targeted sample as part of these procedures. Develop a hypothetical...
-
Bob Night opened "The General's Favorite Fishing Hole." The fishing camp is open from April through September and attracts many famous college basketball coaches during the off-season. Guests...
-
An aluminum flagpole is 34 m high. By how much does its length increase as the temperature increases by 23 C? (The linear expansion coefficient of aluminum is 23 x 10-6 /C)
-
Prepare journal entries for the above transactions. Aylmer Industries Inc. (Aylmer) has been in business since 2018. Aylmer has two main business segments. This first segment is the construction of...
-
Gary Manufacturing Company Income Statement For the year Ended December 31, 2024 Sales (40,000 units) $1,000,000 Variable expenses $600,000 Contribution margin $400,000 Fixed expenses $200,000 Income...
-
Aster invested $790 for 5 years. At the investment's maturity, its value was $1090.20. What was the annual simple interest rate?
-
You have a 6-year-old bilingual second language learner on your caseload who has an IEP. He was diagnosed as speech/language impaired by a previous therapist, and has goals to work on: increasing...
-
There are 4 types of analysis of financial statements-Explaining in your own words what isHorizontal Analysis.
-
4. Tania is a fashion designer her late 30s that plans to retire within 20 years. She enjoys a very "in" lifestyle and likes to hang out with the "in-crowd" in the "in" nightspots whenever she has...
-
Life insurance is an example of Select answer from the options below diversification. speculation. mortality intermediation. risk pooling.
-
2. Figure shows a cross-section across a diameter of a long cylindrical conductor of radius a = 2 cm carrying uniform current 170 A. What is the magnetic field at radial distances: a) 0 cm b) 1 cm c)...
-
What are the key elements of a system investigation report?
-
Based on Sonderman and Abrahamson (1985). In treating a brain tumor with radiation, physicians want the maximum amount of radiation possible to bombard the tissue containing the tumors. The...
-
Two service elevators are used in parallel by employees of a three-story hotel building. At any point in time when both elevators are stationary, let X1 and X2 be the floor numbers at which elevators...
-
In the game of soccer, players are sometimes awarded a penalty kick. The player who kicks places the ball 12 yards from the 24-foot-wide goal and attempts to kick it past the goalie into the net....
-
A firm in Saudi Arabia uses capital and labor in its production process. The hourly cost of labor is SR30 and the initial rental rate of capital is SR60 per hour. What is the firm's isocost line? How...
-
Canada removed all duties and quotas on imports from Bangladesh in 2003. Since that time, Bangladesh has become the second largest source (after India) of Canadian merchandise imports from South...
-
A firm has the cost curve \(C(q)=100+150 q-\) \(46 q^{2}+5 q^{3}\). What are the equations of the firm's marginal cost, average variable cost, and average cost curves? What are the minimum values of...
Study smarter with the SolutionInn App