I would like to request for a precise Java programming for this example:     Procedure: Create a NetBeans project for this activity. The project name should be as follows:                    Project Name: MP3_           Example: MP3_Blanco_Maria The class names to be created are the following: Client (the main class that contains the main method and the implementation of the main menu) SavingsAccount (the subclass where attributes and methods are defined) BankAccount (the superclass where attributes and methods are defined)   All class names must be suffixed with last name. Client ClientBlanco SavingsAccount SavingsAccountBlanco BankAccount BankAccountBlanco   Please check the screenshots for the specifications.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I would like to request for a precise Java programming for this example:

 

 

Procedure:

  • Create a NetBeans project for this activity. The project name should be as follows:         

          Project Name: MP3_<lastname_firstname>

          Example: MP3_Blanco_Maria

  • The class names to be created are the following:
    • Client (the main class that contains the main method and the implementation of the main menu)
    • SavingsAccount (the subclass where attributes and methods are defined)
    • BankAccount (the superclass where attributes and methods are defined)

 

  • All class names must be suffixed with last name.
  • Client<your_last_name> ClientBlanco
  • SavingsAccount<your_last_name> SavingsAccountBlanco
  • BankAccount<your_last_name> BankAccountBlanco

 

Please check the screenshots for the specifications.

Write a Java program with the following specifications:
1. Define the following attributes and methods of the BankAccount
class:
o Attributes: accountName, address, birthday, contactNumber
o Constructor
o Setter and Getter methods
o getClientDetails method
2. Define the following attributes and methods of the SavingsAccount
class:
o Attribute: accountNo, balance, interestRate
o Constructor
o Setter and Getter methods
o balancelnquiry method
o deposit method
o withdraw method
o validateAcctNumber method
o closeAccount method
3. Note that the SavingsAccount class will be inherited from the
BankAccount class.
4. Define the following methods in the Client class:
o main method
o displayMainMenu method
o other applicable methods
5. Note that the object to be instantiated in the main method is an
object array.
For example: SavingsAccount[] sa = new SavingsAccount[100];
6. The program should have the main menu as shown below and will
always loop back to the main menu after each transaction.
JBank Main Menu
[1] New Account
[2] Balance Inquiry
[3] Deposit
[4] Withdraw
[5] Client Profile
[6] Close Account
[7] Exit
Transcribed Image Text:Write a Java program with the following specifications: 1. Define the following attributes and methods of the BankAccount class: o Attributes: accountName, address, birthday, contactNumber o Constructor o Setter and Getter methods o getClientDetails method 2. Define the following attributes and methods of the SavingsAccount class: o Attribute: accountNo, balance, interestRate o Constructor o Setter and Getter methods o balancelnquiry method o deposit method o withdraw method o validateAcctNumber method o closeAccount method 3. Note that the SavingsAccount class will be inherited from the BankAccount class. 4. Define the following methods in the Client class: o main method o displayMainMenu method o other applicable methods 5. Note that the object to be instantiated in the main method is an object array. For example: SavingsAccount[] sa = new SavingsAccount[100]; 6. The program should have the main menu as shown below and will always loop back to the main menu after each transaction. JBank Main Menu [1] New Account [2] Balance Inquiry [3] Deposit [4] Withdraw [5] Client Profile [6] Close Account [7] Exit
7. The New Account option should implement the following:
o Input client details: name, address, birthday, and contact number
o Input the initial deposit of not less than PhP 5,000
o Generate a four-digit account number randomly
8. The Balance Inquiry option should implement the following:
o Input the account number and validate
o If the account number is valid, display the client name and
current balance
9. The Deposit option should implement the following:
o Input the account number and validate
o If the account number is valid, input the amount of deposit of not
less than Php 100
o Compute and update the current balance as follows:
Balance+=amount of deposit
Interest=5% of balance
Balance+=interest
10. The Withdraw option should implement the following:
o Input the account number and validate
o If the account number is valid, input the amount to be withdrawn,
not less than Php 100, not greater than the balance, and an
amount of Php 5,000 should be maintained (maintaining
balance)
o Compute and update the balance as follows:
Balance-=amount withdrawn
11. The Client Profile option should implement the following:
o Input the account number and validate
o If account number is valid, display the client details including the
current balance.
12. The Close Account option should implement the following:
o Input the account number and validate
o If account number is valid, confirm if the user closes the account
then set the balance to zero
o Otherwise, go back to the main menu
13. The Exit option terminates the program.
14. The following Main Menu validations should be implemented:
o Validate the transaction code by the user
o The user should not be allowed to perform transactions 2 to 5,
unless a new account has been created
o Apply all input validations.
Transcribed Image Text:7. The New Account option should implement the following: o Input client details: name, address, birthday, and contact number o Input the initial deposit of not less than PhP 5,000 o Generate a four-digit account number randomly 8. The Balance Inquiry option should implement the following: o Input the account number and validate o If the account number is valid, display the client name and current balance 9. The Deposit option should implement the following: o Input the account number and validate o If the account number is valid, input the amount of deposit of not less than Php 100 o Compute and update the current balance as follows: Balance+=amount of deposit Interest=5% of balance Balance+=interest 10. The Withdraw option should implement the following: o Input the account number and validate o If the account number is valid, input the amount to be withdrawn, not less than Php 100, not greater than the balance, and an amount of Php 5,000 should be maintained (maintaining balance) o Compute and update the balance as follows: Balance-=amount withdrawn 11. The Client Profile option should implement the following: o Input the account number and validate o If account number is valid, display the client details including the current balance. 12. The Close Account option should implement the following: o Input the account number and validate o If account number is valid, confirm if the user closes the account then set the balance to zero o Otherwise, go back to the main menu 13. The Exit option terminates the program. 14. The following Main Menu validations should be implemented: o Validate the transaction code by the user o The user should not be allowed to perform transactions 2 to 5, unless a new account has been created o Apply all input validations.
Expert Solution
steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Unreferenced Objects
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education