Using JAVA Create an AccountRecord class, complete with accessors and mutators (get and set methods) for the instant variables as well as the toString method for formatting the object. The Account Record class must have an abstract method called calculateinterest A savings account must have a minimum balance of R500 and has an annual interest of 5%, If the balance is greater than R10000 the annual interest is 7% and if the balance is greater than R50000 the annual interest is 8% An investment account must have a minimum balance of R100000 and the annual interest is 9%, Withdrawals cannot be made on an investment account. A check account can have a minimum balance of RO. The annual interest is 2% if the balance is greater R20000. If the balance is greater than R100000 the annual interest can be 4% Each of the subclasses must have at least two constructors. The savings account, investment account and check account are all subclasses of AccountRecord, The super 0) keywork must be used in both the constructors and the toString() methods of the subclasses, All account types are able to make a deposit. The savings and check accounts can also make a withdrawal as long as there is enough minimum balance after the withdrawal,

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Using JAVA

Create an AccountRecord class, complete with accessors and mutators (get and set methods) for the
instant variables as well as the toString method for formatting the object.
The Account Record class must have an abstract method called calculateinterest

A savings account must have a minimum balance of R500 and has an annual interest of 5%, If the
balance is greater than R10000 the annual interest is 7% and if the balance is greater than R50000 the
annual interest is 8%
An investment account must have a minimum balance of R100000 and the annual interest is 9%,
Withdrawals cannot be made on an investment account.
A check account can have a minimum balance of RO. The annual interest is 2% if the balance is greater
R20000. If the balance is greater than R100000 the annual interest can be 4%
Each of the subclasses must have at least two constructors.
The savings account, investment account and check account are all subclasses of AccountRecord, The
super 0) keywork must be used in both the constructors and the toString() methods of the subclasses,

All account types are able to make a deposit.

The savings and check accounts can also make a withdrawal as long as there is enough minimum
balance after the withdrawal,

You can input a minimum of three different account instances using the GUI, keyboard of literal
instantiations.

Use any of the collections to populate your account objects.
Implement this example, out putting all the instance variables of each object.
Your application should have a minimum of 6 classes

Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY