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.
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.
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
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.
- 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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 8 images
Knowledge Booster
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.Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education