Wite a java application that allows the user to read

Assignment Help JAVA Programming
Reference no: EM13380257

Write a java application that allows the user to read, validate, store, display, sort and search the account number and balance for N bank customers. N should be declared as a constant and it should be equal to the largest digit of your student id number (e.g. if your ID number is S0159226 then N should be equal to 9 and you can declare it as final int N=9;). The account number and balance must be stored in two separate single dimension arrays/arrayLists (index 0 for customer 1 and index N-1 for customer N). The minimum and maximum account numbers which can be stored are 999 and 9999. The minimum and maximum account balances which can be stored are $1 and $100000. The account number and balance must be entered from the keyboard and a validation for minimum and maximum values must be done.

Your application should display and execute a menu with the following options. A switch statement must be used to execute the following menu options.

1. Read, validate and store account number and balance for N customers
2. Display account number and balance for all customers
3. Display all account numbers which have $1 balance
4. Find and display the account balances which have below the average balance
5. Find and display the account number with the largest balance
6. Sort and display the account balances in descending order
7. Search and display the accounts which have balance equal to the given balance
8. Exit from application

1. Read, validate and store account number and balance for N customers

This option reads account number and balance for all customers from the keyboard and stores them in two separate single dimension arrays/arrayLists. If the account number is less than 999 and greater than 9999 then an appropriate message should be displayed and the user should be asked to enter a new account number. Similarly if the balance is less than $1 and greater than $100000 then
an appropriate message should be displayed and the user should be asked to enter a balance.

2. Display account number and balance for all customers

This option displays the account number and balance stored in Arrays/ArrayLists for all customers.

3. Display all account numbers which have $1 balance

This option displays all account numbers stored in Array/ArrayList which have $1 balance.

4. Find and display the account balances which have below the average balance

This option finds and displays the account balances stored in Array/ArrayList which have balance below the average balance.

5. Find and display the account number with the largest balance

This option finds and displays the account number stored in Array/ArrayList which has largest balance. If there is more than one account with the same balance (largest balance) then it displays all of them.

6. Sort and display the account balances in descending order This option sorts and displays account balances stored in Array/ArrayList for all customers in descending order. You must use the Selection Sort algorithm. A built-in sort algorithm for sorting
is not allowed in this assignment.

7. Search and display the accounts which have balance equal to the given balance This option searches Array/ArrayList and displays the accounts which have balance equal to the given balance. The application asks the user to enter a balance using the keyboard and searches for it. If the balance entered from the keyboard is found then the application displays account number and balance otherwise it displays an appropriate message. A built-in search algorithm for searching can be used in this assignment.

8. Exit from application

The application should display the message "Thank you" and your student id number and then exit from application.

The application should work in a loop to enable the user to read, validate and store account number and balance for N customers, display account number and balance for all customers, display all account numbers which have $1 balance, find and display the account balances which have below the average balance, find and display the account number with the largest balance, sort and display the account balances in descending order, search and display the customers which have balance equal to the given balance and exit from application.

Reference no: EM13380257

Questions Cloud

Identify and describe the processes involved in the windows : identify and describe the processes involved in the windows client server environment.explain the role of clientserver
Describe and critically evaluate the similarities between : describe and critically evaluate the similarities between the windows and unix operating systems evaluate the
Describe who the systemsnbspintended usersnbspare and why : describe who the systemsnbspintended usersnbspare and why they will use this software i.e. indicate
Question1explain how a web site could learn something about : question1explain how a web site could learn something about your browsing habits. make assumptions mention the
Wite a java application that allows the user to read : write a java application that allows the user to read validate store display sort and search the account
Barwon taichi is a small and dynamic business located in : barwon taichi is a small and dynamic business located in geelong and melbourne. it provides self-defence fitness and
What do you think is the key to managing change in projects : what do you think is the key to managing change in projects? why do you think this is the key?assess your current
A company with headquarters at 1 talavera rd north ryde : a company with headquarters at 1 talavera rd north ryde wishes to obtain internet access. they require unlimited data
Now electronics has four stores in the sydney region : now electronics has four stores in the sydney region hornsby penrith campbelltown city connected in a star topology by

Reviews

Write a Review

JAVA Programming Questions & Answers

  Assignment covers the subsequent eight topics and explore

assignment covers the subsequent eight topics and explore the implementation of memory management processes and

  Each purchase contains an invoice number amount of sale

Create a class named Purchase. Each Purchase contains an invoice number, amount of sale, and amount of sales tax. Include set methods for the invoice number and sale amount.

  What violations and crimes would you definitely file

What if you were a parole officer and had to decide whether or not to file complaints against your parolees? What violations and crimes would you definitely file complaints for and what would you most likely overlook and why?

  Create your own date class

You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following interface and main program:

  User session mgr - socket and thread programs

User Session Mgr - Socket and Thread Programs

  Write a java program to read the numbers from the disk file

Write a Java program to read the numbers from the disk file and store them in an integer array ( not an ArrayList ).

  Create a class named blooddata

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor

  Classes using set and get methods

Create a java program that contains two classes using set and get methods. I need the program to return the area and perimeter of a rectangle. I wrote a program and he returned to me saying I used the wrong constructors and didn't create a the sec..

  Your task for this project is to design a program to help a

your task for this project is to design a program to help a videorental store operatorrecord clients transactions. the

  Generates a random number between 1 and 100

Write a program that generates a random number between 1 and 100 (inclusive) and then prompts the user to guess the number. The user should be given up to 10 chances to guess the number.

  Achieving simplicity and merely being simplistic

What is the difference between achieving simplicity and merely being simplistic?

  Write a recursive method called maxsum

write a recrusive method called maxSum that accepts a list of integers. L, and an integer limit n as parameters and use backtracking to find the maximum sum that can be generated by adding elements of L that do not exceed n.

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