Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with creating a Clear Check method, along with its requirements based on this program : https://www.chegg.com/homework-help/questions-and-answers/java-program-bank-accounts-using-classes-constructors-methods-hired-programmer-major-bank--q35500077?trackid=VzcL2Z69 JAVA PROGRAM Bank Accounts: Using Classes

image text in transcribedI need help with creating a Clear Check method, along with its requirements based on this program : https://www.chegg.com/homework-help/questions-and-answers/java-program-bank-accounts-using-classes-constructors-methods-hired-programmer-major-bank--q35500077?trackid=VzcL2Z69

JAVA PROGRAM Bank Accounts: Using Classes with Constructors and Methods You have been hired as a programmer by a major bank. Your first project is a small banking transaction system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, balance inquiries, close accounts, etc. For this assignment, you must use Classes and move functionality into the classes. Specifically, you should have at least the following classes: 1. A Bank class which consists of an array of Accounts and the number of accounts currently active in the bank. 2. An Account class which consists of a Depositor, an account number, an account type, and a balance. 3. A Depositor class which has a Name and a social security number. 4. A Name class which consists of first and last names. 5. A Datelnfo class which consists of year month, and dayOfMonth data members. You must add appropriate methods to each class so as to implement the functionality of each of the methods of the previous assignment (HW2). Each of the methods of HW2 should be re-implemented utilizing a class method. (You will have to decide as to which class each method belongs.) In addition, each class should minimally have a default constructor and possibly additional parametized constructors. (Some of the HW2 methods may become constructors.) The data members of each class must be private. As such, you may need to provide accessor and mutator methods. Remember, all /O should be done only in the methods of the class that contains the main0 method. As in previous assignments, initially, the account information of existing customers is to be read into the database. The bank can handle a maximum of MAX_NUM accounts. The program keeps tracks of the actual number of currently active accounts. A table of the initial database of active accounts should be printed. As before, the program then allows the user to select from the following expanded menu of transactions: Select one of the following: W - Withdrawal D Deposit C - Clear Check _ N - New account B - Balance I Account Info X - Delete Account Q - Quit ote must also check the date of the check. You may only clear a check if the date on the check is no more than six months ago. No post-dated checks (checks with a future date) may be cleared. Use the Dataelnfo class to implement this. In addition, a check will clear only if there is sufficient funds in the account. If the account lacks sufficient funds, the check will not clear and the account will be charged a $250 Service Fee e Clear Check transaction is only valid for checking accounts. It is like a withdrawal; except, you "bouncing" a check. ote 2 CD accounts will now contain a Maturity Date. Deposits and Withdrawals will be allowed only on or after the maturity date. When a deposit or withdrawal is made, have the user select a new maturity date fro the CD. the choices are either 6, 12, 18, or 24 months from the date of the deposit or withdrawal. Again, use the Datelnfo class to implement this. ote 3Use the Calendar class to assist you in implementing the Datelnfo class. Once the user has entered a selection, appropriate methods (in the class that contains the main0 method) should be called to perform the specific transaction. These methods will call the class implemented methods as necessary. At the end, before the user quits, the program prints the contents of the final database As in previous assignments, make sure to use enough test cases so as to completely test program functionality. Make sure that there is at least one depositor that has multiple accounts at the bank

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions