Bank Waiting Times

Customers often have to wait during the acquiring and consuming many products and services. Many banks participated in an experiment testing customers’ satisfaction with waiting in the line. The experiment produced the following data (as an example):

Table 1. Waiting times of bank customers at different banks [in minutes]

BLOM Bank | 6.5 6.6 5 7.1 7.3 8 6.3 7 7.5 6 |
HSBC Bank | 4.3 5 7.5 4 4.1 8 8.2 6.5 5.2 10 |
Write a program to analyze the waiting time situation for any number banks based on the input results (see Table 1 as an example). Also, you would need to include the following requirements:

  1. The program has to implement the input options to read the data from the keyboard (later in assignment 2, you will need to read the data from a file bank.txt)

  2. The user should be prompted to enter as many banks and waiting time as he desires in the following format: BANK_NAME | t1 t2 t3 … |

  3. The program has to calculate for each bank the mean and the standard deviation of the waiting times.

  4. The program has to print on the screen the results for each bank.

  5. Studies have shown that customers waiting in a queue prefer waiting times with less variation, i.e. with lower standard deviation. The program should write a conclusion showing which bank has more satisfied customers.

  6. Some customers are interested in the overall minimum and maximum time of all the banks under study. The program should also find the minimum time and maximum waiting time indicating which banks were chosen.

  7. Once the optimal bank has been chosen, the user would be given the option to invest money in that specific Bank and would be prompted for the APR and the number of years he would like to invest his money and then your program should give him his total amount (including compound interests) after the required number of years.
    Formulas:
    For a set of n values, x1, x2, ... xn , the average or mean and standard deviation, s, are given by

P is the principal (the money you start with, your first deposit)
R is the annual rate of interest as a decimal (5% means r = 0.05)
N is the number of years you leave it on deposit
A is how much money you've accumulated after n years, including interest.

Read the rules then try again.

Here's a helpful hint: "provide evidence of having done some work yourself if posting questions from school or work assignments"

I suspect we will live...

PS, read the rules before asking another question if you actually want anyone to help you.

thanks guys u lost the chalnge

Believe it or not, we can tell the difference between a legitimate challenge, and a lazy student trying to trick others into doing their homework. Your 'challenge' is clearly the latter.

c u in a next question

I hope not, we already have enough cheaters trying to dump their homework on us.

I know I've been using this a lot, but the OP in this case really needs this particular anvil dropped on his head.

First off, we don't do other people's homework for them. Second, we don't do other people's homework for them. And third, we don't do other people's homework for them. Sensing a pattern here yet?

No one here will simply hand you a solution on a silver platter. If you show us what you've done, what you've tried to do, and what problems you've had with it, then we'll be happy to help. If you have specific questions, we can answer them, or at least point you in the right direction. If you have a program with a bug you can't swat on your own, we'll be glad to assist, so long as you pay attention to the forum rules and post sensible questions in an intelligent manner that we have some reasonable hope of answering.

But just cutting and pasting an assignment into a message, without even prefacing it with something like, "I have this homework problem that I can't solve...", is likely to get you booted from the message boards here and elsewhere - if you're lucky. What happens to you if you are unlucky is... well... let's just say that this guy probably won't be trying that again, on that forum or this one.

We take this issue seriously here. Very seriously. Asking us to do homework for you is a grave breach of academic ethics on your part, and actually doing so would be an even bigger breach on ours (not that this stops the many fine mercenaries at Freelancer.com, but still). Simply posting this here, in this way, could get you expelled from your school, if someone happens to notice it and blow the whistle on you. Furthermore, it does neither you nor us any good to help you cheat - especially since there's a good chance some day one of us will have to work with you, manage you, or, Eris forefend, fix code you've written. We have an obligation to our profession and our own future sanity to help you become a good programmer, and doing your coursework for you isn't going to do that.

And if you think you won't get caught by your professor... think again.

And please don't insult our intelligence by claiming that it isn't a class assignment. It's very easy to spot one, and we have a lot of practice at it. Trust me on this.

Now, if you actually don't know how to create a program that fits the requirements... hmmmn. Reading the book is definitely called for. As is speaking to the professor; while some can be a--holes about office hours, most are more than willing to give extra help, if only to keep their class grades from slipping to the point where they get re-assigned to teach remedial basketweaving.

Edited 1 Year Ago by Schol-R-LEA

This article has been dead for over six months. Start a new discussion instead.