Menu

[solved] – Question 71516

Write a program that lets the user enter a charge account number. The program should determine if the number is valid by checking for it in the following list:
5658845 8080152 1005231 4520125 4562555 6545231
7895122 5552012 3852085 8777541 5050552 7576651
8451277 7825877 7881200 1302850 1250255 4581002
Initialize a one-dimensional array with these values. Then use a simple linear search to locate the number entered by the user. If the user enters a number that is in the array, the program should display a message saying the number is valid. If the user enters a number not in the array, the program should display a message indicating it is invalid.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *