to select a folder. • Re a d a ll f ile n a mes from the folder a nd displ a y them in the JList or JTextAre a . • Use the f irst f ile in the list to: • Count lines → dr a w a box sized by line count. • Count if / switch / for / while → dr a w a nother box sized by complexity. • Comp a ring box sizes should show di ff erence. For example: 100 lines a nd 100 control st a tements → both boxes s a me size. • If f ile h a s @ a uthor a nd @version → dr a w h a ppy/serious f a ce. Otherwise → dr a w s a d f a ce. • Submit your code a nd your Cl a ss Di a gr a m 26
[email protected] Fall 2025 Copyright. These slides can only be used as study material for the class CSC305 at Cal Poly. They cannot be distributed or used for another purpose.