HW6x -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ----------------------------------------------------------------------HW#6X SPECSCS108, SPRING 2009----------------------------------------------------------------------"EXTRA" HOMEWORKS=================Some students have asked for more homeworks, or more challenging homeworks.This is "HW#6X", meaning "Homework #6 Extra".* There is some Extra Credit, +5 pts, for doing the "Extra" HW.But, really, you should do it for the extra challenge,not necessarily for the extra points.* HW#6X does NOT "replace" the normal HW#6. You must still do "HW#6",since HW#6 covers different but important topics.----------------------------------------------------------------------HW#6X SPECS===========* Earlier in the semester, we discussed the fact that Stackscan be used to browse nested directories/folders on a computer system.This HW will actually do that.* For this HW, you MUST use Stacks, NOT recursive functions or subroutines.(I.e., a recursive function/subroutine is one which calls itself.)Since recursive functions are less efficient and use much more RAM,programmers often try to replace recursive calls with Stack usage.That's what you'll do.-----Use the StackV class from lecture, to solve the following problem.Create a "File Search" program. This will be similar to the"Start|Search|FilesOrFolders" file-search option on PCs.Write a Java program that searches directories and subdirectorieswhile looking for files (i.e., searching the directories and files locatedon your rohan account, or located on your home PC if you are using alocally-installed Java SDK).Whenever your program finds a file, the file's location (directory path)...
View Full Document

Page1 / 4

HW6x -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online