Description The objective of this project is to manage Bank Accounts. It contain account class that contains: A private int data field named id for the account (default 0). A private string data field named name to store the name of the customer. A private double data field named balance for the account (default 0). A private double data field named annuallnterestRate that stores the current interest rate (default 0). A private Date data field named dateCreated that stores the date when the account was created A data field named transactions whose type is Aray that stores the transactions of the account Each transaction is an instance of the Transaction class, which is defined as follows Tramartion de j D cha dle hulance dle desripi. Suing The dute of this amation The ope of the wuatio, uch a w for wituwl. "D depo The amunt of the wansacion The sew hal at w ndsap u mado aunt de, hlae Contruct a Tuntn wih the speciod dae, hulane, and descriptin hle dei Sring Note: The pet and set methods for these dana fields are provided in the class, but omitted in the UML. diagram for brevity A no-arg constructor that creates a default account. A constructor that constructs an account with the specified id, name, and balance. The accessor and mutator methods for id, name, balance, and anmualinterestRate. The accessor method for dateCreated. A method named getMonthlyInterestRate) that returns the monthly interest rate. A method named getMonthlylnterest) that returns the monthly interest. A method named withdraw that withdranws a specified amount from the account and update transactions aray A method named deposit that deposits a specified amount to the account and update transactions array. Hint: The method getMonthlyInterest) is to return monthly interest, not the interest rate. Monthly interest is balance monthlyInterestRate. monthlyinterestRate is annuallnterestRate / 12. Note anmuallnterestRate is a percentage, for example 4.5% You need to divide it by 100. Required Tasks Write a test program that allow the user to manage bank accounts, which are stored in an array, as shown in the following memu which is displayed by the program

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
i need the answer quickly
Bank Accounts Management Project
Description
The objective of this project is to manage Bank Accounts. It contain account class that
contains:
1A private int data field named id for the account (default 0).
A private string data field named name to store the name of the customer.
LA private double data field named balance for the account (default 0).
TA private double data field named annuallnterestRate that stores the current interest rate
(default 0).
A private Date data field named dateCreated that stores the date when the account was
created
LA data field named transactions whose type is Array that stores the transactions of the
account. Each
transaction is an instance of the Transaction class, which is defined as follows
Tramartion
de ja uil Dane
aype char
-amount double
hulance doube
decripi Sring
Transactionype char.
amount double, helance
ehle dewrigti Sering
Note: The get and set methods for these data fields are provided in the class, but omitted in the UML
diagram for brevity
The date of this transaction
The type of the uanaction, uch an W for withdrawal. D for deposit.
The amount of the transaction
The sew halane ater this transaction
The descrietion of this trasaction
Constructa Transaction with the specied dae, ype.halance, and description
LA no-arg constructor that creates a default account.
A constructor that constructs an account with the specified id, name, and balance.
1 The accessor and mutator methods for id, name, balance, and annuallnterestRate.
- The accessor method for dateCreated.
LA method named getMonthlyInterestRate) that retums the monthly interest rate.
A method named getMonthlyInterest) that returns the monthly interest.
A method named withdraw that withdraws a specified amount from the account and update
LA
transactions
array
LA method named deposit that deposits a specified amount to the account and update
transactions array.
Hint: The method getMonthlyInterest) is to return monthly interest, not the interest rate.
Monthly interest is balance * monthlyInterestRate. monthlylnterestRate is anmuallnterestRate
/12. Note annualnterestRate is a percentage, for exanple 4.5% You need to divide it by 100.
Required Tasks
Write a test program that allow the user to manage bank accounts, which are stored in an
array, as shown in the following memu which is displayed by the program
Main menu
1: create an account
2: check balance
2: withdraw
3: deposit
4: account summary
5: exit
Enter a choice:
To create an account, the user is prompted to enter account details (id, name, annual interest
rate,balance). To check the balance of an account, the user is prompted to enter account id and
program displays the balance. To withdraw from an account the user is prompted to enter
account id and the amount to withdraw and the program displays the balance after
withdrawal. To deposit to an account, the user is prompted to enter account id and the amount
to deposit and the program displays the balance after deposit. To print a summary of an
account, the user is prompted to enter account id and the program displays account summary
that shows the account holder name, interest rate, balance, and all previous transactions. In
doing the above operations, the program implement a search method that take id as a
parameter and return the index of the account in the array of accounts.
Transcribed Image Text:Bank Accounts Management Project Description The objective of this project is to manage Bank Accounts. It contain account class that contains: 1A private int data field named id for the account (default 0). A private string data field named name to store the name of the customer. LA private double data field named balance for the account (default 0). TA private double data field named annuallnterestRate that stores the current interest rate (default 0). A private Date data field named dateCreated that stores the date when the account was created LA data field named transactions whose type is Array that stores the transactions of the account. Each transaction is an instance of the Transaction class, which is defined as follows Tramartion de ja uil Dane aype char -amount double hulance doube decripi Sring Transactionype char. amount double, helance ehle dewrigti Sering Note: The get and set methods for these data fields are provided in the class, but omitted in the UML diagram for brevity The date of this transaction The type of the uanaction, uch an W for withdrawal. D for deposit. The amount of the transaction The sew halane ater this transaction The descrietion of this trasaction Constructa Transaction with the specied dae, ype.halance, and description LA no-arg constructor that creates a default account. A constructor that constructs an account with the specified id, name, and balance. 1 The accessor and mutator methods for id, name, balance, and annuallnterestRate. - The accessor method for dateCreated. LA method named getMonthlyInterestRate) that retums the monthly interest rate. A method named getMonthlyInterest) that returns the monthly interest. A method named withdraw that withdraws a specified amount from the account and update LA transactions array LA method named deposit that deposits a specified amount to the account and update transactions array. Hint: The method getMonthlyInterest) is to return monthly interest, not the interest rate. Monthly interest is balance * monthlyInterestRate. monthlylnterestRate is anmuallnterestRate /12. Note annualnterestRate is a percentage, for exanple 4.5% You need to divide it by 100. Required Tasks Write a test program that allow the user to manage bank accounts, which are stored in an array, as shown in the following memu which is displayed by the program Main menu 1: create an account 2: check balance 2: withdraw 3: deposit 4: account summary 5: exit Enter a choice: To create an account, the user is prompted to enter account details (id, name, annual interest rate,balance). To check the balance of an account, the user is prompted to enter account id and program displays the balance. To withdraw from an account the user is prompted to enter account id and the amount to withdraw and the program displays the balance after withdrawal. To deposit to an account, the user is prompted to enter account id and the amount to deposit and the program displays the balance after deposit. To print a summary of an account, the user is prompted to enter account id and the program displays account summary that shows the account holder name, interest rate, balance, and all previous transactions. In doing the above operations, the program implement a search method that take id as a parameter and return the index of the account in the array of accounts.
Expert Solution
steps

Step by step

Solved in 3 steps with 8 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage