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

  High-performance network

A company is interested in upgrading its current core infrastructure, which comprises 2 100mbps switches which connect to a utility room that houses 8 100mbps switches wired with Ethernet Category 5 that run to each client machines.

  Determine possible routing paths in bgp routing table

In the topology, network S is multi-homed to four providers, i.e., P1, P2, P3 and P4, where P1, P2 and P3 are customers of common provider P while P4 is customer. Now assume D is destination of interest. Determine the possible routing paths to D th..

  Compute time taken by signal to reach from one node to other

Assume nodes A and Bare on the same 10 Mbps Ethernet bus, and the propagation delay between the two nodes is 325 bit times. The answer is no, if B 's signal reaches A before bit time t = 512 + 64 bits. In the worst case, when does B's signal reach A?

  The analog to digital converter

The Analog to Digital converter has V(t) as its input, and it outputs a binary word B(t) with a fixed length of k bits, which is its best approximation to V(t). Suppose that V(t) can vary continuously between zero and 5 volts

  Show rewsult of inserting these keys using double hashing

Show the result of inserting these keys using linear probing, using quadratic probing with c1 = 1and c2 = 3, and by using double hashing with h2(k) = 1 + (k mod (m-1)).

  Determine distinct canonical names required-ip multicasting

Let N users participating in the audio/video conference by using IP multicasting. Each user is equipped with the microphone, camera, and speakers. How many distinct canonical names are required?

  Compute total end-to-end delay to send packet of length l

Assuming that switches user store-and-forward packet switching, what is the total end-to-end delay to send a packet of length L? (Ignore queuing, propagation delay, and processing delay.)

  Describe network in file transfer and without file transfers

Observe reply time before and during file transfer. Write down short description of network response time during file transfers and without file transfers.

  Producing list of mac addresses and ip addresses

You have been asked in order to produce a list of the MAC addresses and the corresponding IP addresses and computer names within your network. Suggest at least two methods in order to complete this task.

  What allows the ip layer to determine where to send a packet

what allows the IP layer to determine where to send a packet next? What settings are used to make that decision?

  Case study - diane the consultant

Construct a diagram using Rationale to map the arguments about a moral claim that you have identified in the article/case study:

  Disadvantages of several different web technologies

Describe the advantages and disadvantages of several different Web 2.0 technologies. How could these technologies be used for good? What types of problems might these technologies cause?

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