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

  Networking and types of networking

This assignment explains the networking features, different kinds of networks and also how they are arranged.

  National and Global economic environment and ICICI Bank

While working in an economy, it has a separate identity but cannot operate insolently.

  Ssh or openssh server services

Write about SSH or OpenSSH server services discussion questions

  Network simulation

Network simulation on Hierarchical Network Rerouting against wormhole attacks

  Small internet works

Prepare a network simulation

  Solidify the concepts of client/server computing

One-way to solidify the concepts of client/server computing and interprocess communication is to develop the requirements for a computer game which plays "Rock, Paper, Scissors" using these techniques.

  Identify the various costs associated with the deployment

Identify the various costs associated with the deployment, operation and maintenance of a mobile-access system. Identify the benefits to the various categories of user, arising from the addition of a mobile-access facility.

  Describe how the modern view of customer service

Describe how the greater reach of telecommunication networks today affects the security of resources which an organisation provides for its employees and customers.

  Technology in improving the relationship building process

Discuss the role of Technology in improving the relationship building process Do you think that the setting of a PR department may be helpful for the ISP provider? Why?

  Remote access networks and vpns

safekeeping posture of enterprise (venture) wired and wireless LANs (WLANs), steps listed in OWASP, Securing User Services, IPV4 ip address, IPV6 address format, V4 address, VPN, Deploying Voice over IP, Remote Management of Applications and Ser..

  Dns

problems of IPV, DNS server software, TCP SYN attack, Ping of Death, Land attack, Teardrop attack, Smurf attack, Fraggle attack

  Outline the difference between an intranet and an extranet

Outline the difference between an intranet and an extranet A programmer is trying to produce an applet with the display shown in Figure 1 below such that whenever one of the checkboxes is selected the label changes to indicate correctly what has..

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