Posted by nigel barry on March 13, 19100 at 06:04:16:
suppose a bank decides to give each of its customers a key they must enter before computerized facilities are made available. then a table must be stored in the computer indicating the key number for each customer so the appropriate check can be made. write a program that implements this scheme as follows. it will have, two tables, one called name that holds names of customers and one called key that holds their key numbers. the key numbers will be positive integers. for example, name [1] will hold the name of the first customer and key[1] will hold that person's key number the program will first ask how many customers are to be stored (15) with thier key numbers. then it will enable the user to input each name and associated key number. after it has stored these, it will enter a loop designed for customer. it will ask the customer for thier name and key number. if it finds the name in the list and sees that the key number is correct, it will print out a message "welcome to the xyz bank automated teller." if it does not fine the name and key number, it will print "sorry, your name and key are not approved for entry into this system.