Question: java arrays of objects Define a class ACCOUNT with the following members: Private members Acno of type int Name of type String Balance of type

java arrays of objects
Define a class ACCOUNT with the following members:
Private members
Acno of type int
Name of type String
Balance of type float
Public members
void Init() method to enter the values of data members
void Show() method to display the values of data members
void Deposit(int Amt) method to increase Balance by Amt
void Withdraw(int Amt) method to reduce Balance by Amt (only if required balance exists in account)
float RBalance() member function that returns the value of Balance
The program will create an array of Account and:
Define a methodRegister(), to take the input of ACCOUNTs .
Define another methodTransact( ), to perform a transaction i.e. Deposit or Withdraw an Amount in an Account Holders Balance whose Acno is entered by the user. The user will also enter the amount to be withdrawn or deposited. Note that an Account Holder must always have a minimum Balance of $ 500 in his Account.
Define another function DisplayAll( ) to display the details of all Account Holders using Show().
Write a menu driven program, which uses all the above methods.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!