Question: Charge Account Validation-Protected View-Saved to this PC Mailings Review View Help Tell me what you want to do Unless you need to edit, it's safer

 Charge Account Validation-Protected View-Saved to this PC Mailings Review View Help

Charge Account Validation-Protected View-Saved to this PC Mailings Review View Help Tell me what you want to do Unless you need to edit, it's safer to stay in Protected View. Enable Editing Charge Account Validation The file named charge accounts.txt contains a company's list of valid charge account numbers. Each account number is a seven-digit number, such as 5658845 Write a program that reads the contents of the file into an array. The program should then ask the user to enter a charge account number. The program will determine whether the number entered by the user is valid by searching for it in the array of valid account numbers. If the number is in the array, the program should display a message indicating the number is valid. If the number is not in the array, the program should display a message indicating the number is invalid Write your program in such a way as to allow the user to repeatedly enter charge account numbers for validation until the user enters a Sentinel value, such as a negative number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!