PROJECT Bank account simulator program Solution

$35.00 $29.00

Objective To write a program that performs various bank transactions. PROJECT DESCRIPTION Bank of WCC has contacted you to write, compile and execute a complete program that creates bank account information and executes various transaction details for their clients. Your program will prompt users for options such as creating an initial balance, entering deposits or…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Objective To write a program that performs various bank transactions.

PROJECT DESCRIPTION

Bank of WCC has contacted you to write, compile and execute a complete program that creates bank account information and executes various transaction details for their clients.

Your program will prompt users for options such as creating an initial balance, entering deposits or withdrawals. Also, your program will allow for the printing of account information including interest at various interest rates.

Use loops, user defined methods, conditional and relational logic and the basics of OOP to accomplish the objectives of this program.

Error trapping will be part of your grade so don’t forget to include some basic error trapping logic! Comment your code thoroughly as well for maximum points.

Project Details

For this program you will create two separate Java files within your pack age, namely AccountHolder and AccountHolderTest.

The AccountHolder file must include the following class field members and data methods to allow for transaction processing.

Field Name

Field modifier/type

annualInterestRate

static / double

balance

double

*Method Name

Method (Instance or Static)

Argument

Return Type

AccountHolder

Constructor

double

none

deposit

Instance

double

void

withdrawal

Instance

double

void

monthlyInterest

Instance

void

void

*assume all methods are declared public

Of course if you would like to add any extra fields or methods in your class(es) feel free

to do so.

Coding detail for your methods must include the following:

  1. Allow the constructor to accept an argument representing an initial balance for the Account holder. Set your balance member equal to the value passed via the class constructor. Balances cannot start off negative! Include an error message if this is the situation.
  1. Define in your monthlyInterest method body an assignment statement to update the account holders’ balance to be effected as follows:

balance += balance * (annualInterestRate / 12.0);

  1. For your deposit & withdrawal methods either have your method body either increase or decrease the holder’s current balance accordingly.

An added rule to follow here:

Disallow a withdrawal attempts to drive account balance to drop below $50. Deliver a message to the console stating that the balance must hold to at least $50.

For your AccountHolderTest file, include any local variables in main to work the application. Include the following transactional detail from your main method for each run below, executed in the following order.

Your main() activities

  1. Allow the interest for the bank to be initially set at 4%. This can be hard coded in.
  1. Create an AccountHolder object and prompt the user for an initial account balance and have the initial balance passed into the AccountHolder constructor.
  1. Prompt the user to enter in a deposit amount.
  1. Prompt the user for a withdrawal amount.
  1. Display an ending balance for the month, including monthly interest, to the account holder.

Snapshot your results above and paste it into Word for credit. Zip your java files of your project separately as well for credit. Label files accordingly. Ex. Lab1_yourInitials.docx and Lab1_yourInitials.zip. Submit all files to BlackBoard when complete.

PROJECT Bank account simulator program Solution
$35.00 $29.00