1.Write code for a sequential search that determines whether the value -1 is stored in an array with array named values. The code should display a message indicating whether the value was found.
2.Create a list object that contains all alphabets. Write a function for binary search algorithm to search for the string ?A?. Display a message box indicating whether the value was found.
3.Download the required files and create an application that reads the contents of the file into an array or list. The application should then let the user enter a charge account number (7 digits) . The program should determine whether the number is valid by searching for it in the array or list that contains the valid charge account numbers. If the number is in the array or List, the program should display a message indicating that the number is valid. If the number is not in the array or list, the program should display a message indicating the number is invalid.
just tell me how would you do that and how your logic will look like i need just the statements.
2.Create a list object that contains all alphabets. Write a function for binary search algorithm to search for the string ?A?. Display a message box indicating whether the value was found.
3.Download the required files and create an application that reads the contents of the file into an array or list. The application should then let the user enter a charge account number (7 digits) . The program should determine whether the number is valid by searching for it in the array or list that contains the valid charge account numbers. If the number is in the array or List, the program should display a message indicating that the number is valid. If the number is not in the array or list, the program should display a message indicating the number is invalid.
just tell me how would you do that and how your logic will look like i need just the statements.