AVA. CODE NEEDED. COPY NOT ALLOW

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
100%

JAVA. CODE NEEDED. COPY NOT ALLOW

You are required: firstly, to create a package called test4 in the project called 00SD1 and
secondly, to design, write, run and test a Java Main Class, called BankAccount, in the test4
package.
In this test, you are required to write a java program for the bank account management. Your
program will provide the methods for different gprations on a bank account.
The BankAsceunt class will have the following properties:
1. Account Title
2. Account Number
3. Account Type
4. Account Balanace
The class will have a method for each of the following functionality:
1. Add Account
This method will add/set the values of all properties of the class. You should validate the
input. Account Balance cannot be negative.
2. Check Account Information
The method will display the basic information of the account e.g. Account Title, Number
and type.
3. Check Account Balance
This method will display the balance of an account
4. Withdraw Money
This method will ask the user to input the withdrwal amount, and updates the account
balance. You should validate the account balance, you should display an error message if
withdrawal amount is greater than the set account balance.
5. Calculate Interest:
This methods will calculate and display the interest on the basis of the account type. The
Bank gives no interest on the current account, the interest rate for saving account is 7%
of the account balance.
Transcribed Image Text:You are required: firstly, to create a package called test4 in the project called 00SD1 and secondly, to design, write, run and test a Java Main Class, called BankAccount, in the test4 package. In this test, you are required to write a java program for the bank account management. Your program will provide the methods for different gprations on a bank account. The BankAsceunt class will have the following properties: 1. Account Title 2. Account Number 3. Account Type 4. Account Balanace The class will have a method for each of the following functionality: 1. Add Account This method will add/set the values of all properties of the class. You should validate the input. Account Balance cannot be negative. 2. Check Account Information The method will display the basic information of the account e.g. Account Title, Number and type. 3. Check Account Balance This method will display the balance of an account 4. Withdraw Money This method will ask the user to input the withdrwal amount, and updates the account balance. You should validate the account balance, you should display an error message if withdrawal amount is greater than the set account balance. 5. Calculate Interest: This methods will calculate and display the interest on the basis of the account type. The Bank gives no interest on the current account, the interest rate for saving account is 7% of the account balance.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

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