Instructions: Each question has something left out. A button represents the missing word(s). Think of the word or phrase that completes the sentence, then click on the buttons to see if you are correct.
7. The following program reads a text file. The file contains both integers and words, similar to the following:
ant 32 cat groundhog dog 96 bat rat avacado -12 eel 37 93 fox
The program is to scan the file for integers and write only the integers to standard output. Fill in the blanks so that it does this.
End of the Exercise. If you want to do it again, click on "Refresh" in your browser window. Click here to go back to the main menu.