Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please kingly create a bank account program for java. Thanks hasNext() indefinite loop definite loop enhanced for loop When your bank account program begins you

Please kingly create a bank account program for java. Thanks

hasNext()

indefinite loop

definite loop

enhanced for loop

When your bank account program begins you will initialize class values with data

stored in your text file.

Task 1:

Bank Account Program

Create an Account Class

We are forming the skeleton of a more complex bank account program.

Create instance variables for balance.You may need more depending on how

you implement your bank account program. (We will continue to update the

program as the semester continues.)

Create an 2 arrays as a members of the class.

Deposit_Array

Withdraw_Array

We will need methods:

Method for Depositing values into the account.

What type of method will it be?

Method for Withdrawing values from the account.

What type of method will it be?

Method to output the balance of the account.

What type of method will it be?

Method that will output all deposits made to the account.

Method that will output all withdraws made from the account.

Add a new method that will output the contents of the bank account

program to a text file.

Program will output the balance of the account.

Program will output the account withdrawals.

Program will output the account deposits.

Use class constructor to initialize values in programmer class for program

execution

Balance Value

Withdrawal History

Deposit History

**************************************

* Bank Account Program: *

* Enter # to run program or Quit *

* 1) Make a Deposit *

* 2) Make a Withdrawal *

* 3) Output balance *

* 4) Output all deposits *

* 5) Output all withdrawals *

* 6) Quit *

**************************************

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions