Write a java application that allows the user to read

Assignment Help Computer Networking
Reference no: EM13335413

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.

Reference no: EM13335413

Questions Cloud

What is the mass of fuel needed : A 500 kg spacecraft bound for a 5,000 km circular orbit around Jupiter is constructed and fueled in a 350 km circular orbit at Earth. what is the mass of fuel needed
Define the concentration of the dye in a solution : a) what is the concentration of the dye in a solution with a percent transmittance reading of 45.8% at 640 nm b) if the solution in part a was made by taking 20.00 mL of a stock solution and diluting it to 100.00 mL, what is the concentration of ..
What is the probability the the sample mean will be larger : Scores have an average of 1200 with a standard deviation of 60. A sample mean of 36 scores is selected. What is the probability the the sample mean will be larger than 1224?
Determine what is bouchards cost of retained earnings-rs : The Bouchard Company's EPS was $5.92 in 2012, up from $3.52 in 2007. The company pays out 60% of its earnings as dividends, and its common stock sells for $34.
Write 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 number and balance for N bank customers.
Determine what would the cost of equity from new stock be : Javits & Sons' common stock currently trades at $38.00 a share. It is expected to pay an annual dividend of $2.25 a share at the end of the year (D1 = $2.25), and the constant growth rate is 8% a year.
Explain why the labor demand curve slopes downward : Explain why the labor demand curve slopes downward. Recall that there are 2 reasons.
Because bagels and cream cheese are often eaten together : Because bagels and cream cheese are often eaten together, they are complements. We observe that both the equilibrium price of cream cheese and the equilibrium quantity of bagels have risen. What could be responsible for this pattern-- a fall in the p..
Determine what would be the cost of new equity : The growth rate is a constant 8.4%, and the company has an expected dividend yield of 3%. The expected long-run dividend payout ratio is 40%, and the expected return on equity (ROE) is 14%.

Reviews

Write a Review

Computer Networking Questions & Answers

  Explain detailed response to the network design request

The Technical Term Paper will include the detailed response to the network design request. The document will be submitted in MS Word and will be between 10-15 pages with graphics embedded within the document.

  Create a small network for an organization

You are to create a small network (less than 50 but greater than 20 nodes) for organization of choice consisting of multiple operating systems, security mechanisms, and devices.

  Give hypothetical situation for signal type used in wan

Give a hypothetical situation for each signal type which illustrates how it could be, or is being, used in WAN. In what circumstance, for example, would a company choose to use a satellite signal?

  Show the working of ldcr and mdcr protocol

Find that distance with which the tasks are feasibly scheduled and Show the working of LDCR and MDCR protocol on the given message set

  Find data transmission rate in bits per second of system

Assume that the airliner carries 10,000 kg of those floppies at the speed of 1000 km/h over the distance of 5000 km. Determine the data transmission rate in bits per second of this system?

  Create a domain local group

Create a domain local group, a global group, and make the global group a member of the domain local group.

  Would you recommend buying the stdm multiplexer

Complete the following exercises from FitzGerald and Dennis, Business Data Communications and Networking, 10th ed.

  Mpls over ip solution or form of long-haul ethernet

What occurs if office in Baton Rouge, Louisiana, also should be connected to both Memphis and Laramie at a rate of 512 kbps? Which solution is cheaper now?

  Company a has about 100 employees

Company A has about 100 employees spread over three locations in the same city, all linked by fast network connections. The IT/IS administration is centralized and includes the helpdesk.

  Explain llc and mac

Explain two layers: LLC & MAC, and how are they different from what is available in TCP/IP protocol? Why do we require these two extra layers for LAN?

  Install the web server role via server manager

Role services installed by default and project enables you to install the Web Server role via Server Manager.

  Multiple choice question on networking

1-Which of the following extensions point to an executable string of code?

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