can anyone tell me how to write function that has following specifcations.
search for a house that has some price and the price is not more then a specified amount.i just need logice.plz tell me
Lets assume that the houses in question are objects. Also that you have a list of these objects available. You can create a 'for loop' that checks each house one at a time and then displays the house name if the cost of house is less than an entered ammount.
void find_price(int price){
//if price is less or equal to specifiedAmount
//::then
//switch statement
//else
//error message
}//end function find_price