Discussion Board

For this Discussion Board, please complete the following:

Almost all the programming languages provide a concept called loop, which helps in executing one or more statements up to a desired number of times to accomplish one or more tasks. Assume that you are the programmer hired by a bank to write a program for its automated teller machines (ATM). Give an example where you want to use a loop statement to accomplish a task in the program and answer the following questions:

  • In that example, can you accomplish the same task without using a loop statement? Why or why not?
  • What are the benefits of using a loop statement for that example?