The objective is to implement a menu-based system for bank

Assignment Help JAVA Programming
Reference no: EM13357387

The objective is to implement a menu-based system for Bank Accounts in order to simulate a very simple banking system. Many structures have to be declared to manage bank accounts. An account contains the information about a customer name; his/her account number; current balance and address.

The system should be capable of adding new customers, accepting deposits, handling withdrawals, and displaying data such as customer name, address, account number and balance in dollars.

We may use four parallel arrays. The first array (accountsArray) is for holding the account numbers (each account is of type integer). The second array (namesArray) is needed to hold the customer names. The third (addressesArray) is for customer addresses. And the fourth (balancesArray) is for balances (each balance is of type Real). If a customer has an account in this bank, accountsArray[i] is the account

number of this customer, namesArray[i] is the name of the same customer, addressesArray[i] is the address of the same customer, and balancesArray[i] is the balance of the same customer's account.

Assume that the bank's strategy is to have at maximum 1000 customers. You can start filling partially the arrays by initializing with 10 customers' data of your choice.

Implement your system to perform the following tasks:

Design the MENU described below:

ROCKING BANKING SYSTEM

-----------

1. Add a new customer

2. Add from file

3. Withdraw funds

4. Deposit funds

5. Show Balance

6. Save to file

7. Display All Customers

0. Exit

Enter your choice ?

 

The menu above is redisplayed after the completion of every task based on the item selected unless the item 0 is selected.

When selected,

  • Menu Item 1

Prompts the user as follows: (Each item below is read before the next prompt)

Please enter the following Items

Customer Account Number (read input)

Customer Name (read input)

Customer Address (read input)

Initial Funds (read input)

Use the account number entered to assure that the account does not already exists in the array. If not, then add the new data to the appropriate arrays. If the account number already exists then display an appropriate error message.

  • Menu Item 2

Add new customers from a predefined file "client.txt".

  • Menu Item 3

Prompts the user as follows: (Each item below is read before the next prompt)

Please enter the following Items

Customer Account Number (read input)

Withdraw Amount (read input)

Use the account number to verify that the account exists in the account array. If not, display an appropriate message. If the account exists, perform the withdrawal transaction and update the account. The transaction should check the account for the availability of funds. If sufficient funds are available complete the transaction and display a message. Similarly, display a message if funds are less than the amount requested.

  • Menu Item 4

Prompts the user as follows: (Each item below is read before the next prompt)

Please enter the following Items

Customer Account Number (read input)

Deposit Amount (read input)

Use the account number to verify that the account exists in the account array. If not, display an appropriate message. If the account exists, perform the deposit transaction, update the account, and display an appropriate message.

  • Menu Item 5

Prompts the user as follows: (Each item below is read before the next prompt)

Please enter the following Items

Customer Account Number (read input)

Use the account number to verify that the account exists in the account array. If not, display an appropriate message. If the account exists, the system should display the account details. Below is an example about the layout of the displayed details on the screen:

Account Number: 10

Customer Name: James Dean

Address: Kiulap

Current Balance $ 8171.98

  • Menu Item 6

Save the content of the array in the file "client.txt".

  • Menu Item 7

Display the Bank Customers Details as a report.

  • Menu Item 0

Reference no: EM13357387

Questions Cloud

Verifying some important results over real valued : verifying some important results over real valued functions.prove or disprovelet fgh be real-valued functions and let
Modeled the word problem mathematically like system of : modeled the word problem mathematically like system of equations and solve by the matrix method.a companys employees
Pvc processors use a very high molecular weight acrylic : pvc processors use a very high molecular weight acrylic processing aid for production of rigid pvc foamsheet of high
Modeled the word problem mathematically like system of : modeled the word problem mathematically like system of equations and solve by the matrix method.a companys employees
The objective is to implement a menu-based system for bank : the objective is to implement a menu-based system for bank accounts in order to simulate a very simple banking system.
Solve the system of equation by matrix methoduse augmented : solve the system of equation by matrix method.use augmented matrices to solve the following 2 x 2 systems of equations.
Application of matrices in real word problemsfive : application of matrices in real word problems.five neighborhoods nb all want to raise money for a playground for their
Question 1 ldquoalthough there is no complete list of : question 1 ldquoalthough there is no complete list of adequacy criteria for moral judgments moral judgments have
Sketch a graph of the given function chsuppose the : sketch a graph of the given function ch.suppose the concentration of a chemical in the bloodstream of a large animal h

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a blog article for a codingtechnical community

write a blog article for a codingtechnical community blog.the theme is general c or java. choose any subject under this

  Adt for a two color double stack adt consists of two stacks

design an adt for a two color double stack adt that consists of two stacks one red and one blue and has its operations color coded versions of the regular stack adt operations.

  Create a world class that contains a 2d array

You have to create a world class that contains a 2d array then create an abstract class called organism that contains move() method the organism should move randomly one step at the time.

  Write a program called drawing in the form of a public class

Write a program called Drawing in the form of a public class Drawing that extends a Java JFrame and provides the following features.

  Design java program to enter name in input dialog box

Design the program called MailingLabel.java Program must ask user to enter name and address in input dialog box with each component of address seperated by comma.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Graphics program that draws 12 strings

Write a graphics program that draws 12 strings, one each for the 12 standard colors, besides Color.WHITE, each in its own color. Provide a class ColorNameViewer and a class ColorNameComponent.

  Using your musicalinstrument class

Finally, create a Java test class that simulates using your MusicalInstrument class.  In your test class you should at a minimum: a) Construct 4 instances of your instrument, b) tune your instruments, c) print the name of your instrument d) print ..

  Produce a java implementation of the gui

For your Assignment 2 Part 1 submission you are required to produce a Java implementation of the GUI for the Agriculture image viewer component of your overall Agriculture File Storing and Management (FSM) System.

  Class pointparameters

What is the output of the following Java program? Explain in terms of how parameters are passed in Java.import java.awt.*;class PointParameters

  Java application prompt user to put in integer from keyboard

Write a java application that performs the following task: prompt user to put in an integer from the keyboard, search for the user input from the array created in step 1.

  Write java program which will permit user to input data

Write the Java Program which will permit the user to input data. The data will be validated using a loop that requires the user to input the data until it is correct or in the correct range. T

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd