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. here is my programme
- Create a function which takes the house array and a price as parameter
- Iterate the array "house" (i.e. use a for loop as you do to display the data)
- Check the price of the house against the price parameter
Please give that a try and come back to us with the code you have attempted if you need any further help.
Most of the things you need you have already done elsewhere in the program.