Create a main( ) java file to perform the required tasks. Validate a user’s input (a menu option) to ensure its validity. Test and document your program to make sure that all of the required tasks are met. The main( ) creates a menu for a bank manager and a bank customer. For a bank manager, he/she can add information of bank customers and display all customer records. For a bank customer, he/she can make a deposit to a bank account and withdraw money from the account. Hint: The main ( ) could have a static method that allows a bank manager to add customers’ information to a text file. The information consists of Customer ID, Name (full name), and Email Address. Note that a loop should be used to perform the manager's task. As a result from the process, a text file "BankCustInfo.txt" is created. Also, the main( ) could have another static method that allows the bank manager to display all customer records to the screen. Create a class, BankCustomer, that contains attributes such as CustomerID and Balance. The class allows a bank customer to make deposits , withdraw money, display the current balance, and calculate the current interest earned. To calculate an interest earned, an object of the AccountType must be created (see the AccountType in #3).   Create a class, AccountType, that has two attributes: AccountID and InterestRate. The interestRate value depends on the AccountD; if the AccountID is 1 then it is a checking account, and the interest rate is 0.01. If the AccountID is 2 then the account is a saving account and the interest rate is 0.02. Note that this class could be a static class.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

Create a main( ) java file to perform the required tasks. Validate a user’s input (a menu option) to ensure its validity. Test and document your program to make sure that all of the required tasks are met.

  1. The main( ) creates a menu for a bank manager and a bank customer. For a bank manager, he/she can add information of bank customers and display all customer records. For a bank customer, he/she can make a deposit to a bank account and withdraw money from the account. Hint: The main ( ) could have a static method that allows a bank manager to add customers’ information to a text file. The information consists of Customer ID, Name (full name), and Email Address. Note that a loop should be used to perform the manager's task. As a result from the process, a text file "BankCustInfo.txt" is created. Also, the main( ) could have another static method that allows the bank manager to display all customer records to the screen.
  2. Create a class, BankCustomer, that contains attributes such as CustomerID and Balance. The class allows a bank customer to make deposits , withdraw money, display the current balance, and calculate the current interest earned. To calculate an interest earned, an object of the AccountType must be created (see the AccountType in #3).  
  3. Create a class, AccountType, that has two attributes: AccountID and InterestRate. The interestRate value depends on the AccountD; if the AccountID is 1 then it is a checking account, and the interest rate is 0.01. If the AccountID is 2 then the account is a saving account and the interest rate is 0.02. Note that this class could be a static class.  
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 8 images

Blurred answer
Knowledge Booster
Linux
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage