janesdsu
12-01-04, 11:26 PM
my task is to make a program that will take an integer and find it in an ordered array.. such that :
lineout prompt * Prompts user to enter an integer
****************
* Calls getInput
****************
****************************
* Checks CCR for valid input
****************************
********
* If V=1
********
* Prints error message
* Calls input until valid input is entered
*****************
* Calls binSearch
*****************
********
* If V=0
********
* The return value finds the position of element in array
* Prints the position
********
* If V=1
********
* Prints a not found message
so basically that is what my main is suppose to do. any ideas...
lineout prompt * Prompts user to enter an integer
****************
* Calls getInput
****************
****************************
* Checks CCR for valid input
****************************
********
* If V=1
********
* Prints error message
* Calls input until valid input is entered
*****************
* Calls binSearch
*****************
********
* If V=0
********
* The return value finds the position of element in array
* Prints the position
********
* If V=1
********
* Prints a not found message
so basically that is what my main is suppose to do. any ideas...