The objective is to implement a menu-based system

Assignment Help JAVA Programming
Reference no: EM1318381

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: EM1318381

Questions Cloud

Prepare an equation for the total amount of carbohydrates : Modeled the word problem mathematically like system of equations and solve by the matrix method - Prepare an equation for the total amount of carbohydrates.
Indifference curve analysis of low-income people : Suppose low-income people are given vouchers worth $200 per month that they can use only to pay rent on housing. Use indifference curve analysis to show how the person could be as well off with a $200 cash transfer.
Confidence interval and mean : Find a 95% confidence interval for the mean  µ   of the population from which the men were selected.
Difference between proportion of students of ear infection : At 0.05 level of significance, is there enough evidence to conclude that difference exists between proportion of students who have ear infections at one school and the other?
The objective is to implement a menu-based system : 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.
Suspecting the icmp flooding attack : In reviewing your firewall logs, you notice a large number of the ICMP echo requests coming from external host 63.10.100.4. You suspect an attempted ICMP flooding attack. How could you respond.
Solve the system of equation by matrix method : Solve the system of equation by matrix method - Use augmented matrices to solve the following 2 x 2 systems of equations.
Estimate the vertex and all intercepts of the parabola : Estimate the vertex and all intercepts of the parabola
Create both absolute and relative frequency tables : Produce a printout of the frequency tables, showing the total of both frequencies.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Design and implement a small and simple email server

Design and implement a small and simple email server using the concept of web based information system (WBIS).

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

  Using a linked implementation of graph write a method

Write a method that takes two nodes as input and returns true if joining an edge between these two nodes, forms a duplicate path to one of the input nodes within the graph.

  Compilation and Execution - JAVA problem

Style marks are based on how your submitted code looks. Remember that good code is easily readable (and understandable) by someone who did not write it. For assignments, you should also include your name, student number, what course this is, what ass..

  Minimal spanning tree decreasing edge dismissal

Minimal Spanning Tree Decreasing Edge Dismissal, Reverse-delete algorithm. Develop an implementation that computes the MST

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Methods

Assignment describe the basic working of methods. How to write a method in java and how to call a method.

  Setting up the form page

Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable (not writable).

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

  Sorted list adt and the binary search tree adt

Explain the differences between our specifications of the Sorted List ADT and the Binary Search Tree ADT.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

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