For this assignment you should turn in two files: hw3-soccer.bjava and hw3-filesystem.bjava.
As an indication that you understand the data representation, write as a comment at the top of your file (after the names of you and your partner) the names of all teams represented by the given data, and the names of the players on each team.
count that counts the total number of players
in a soccer league. Make sure you add to the templates as you develop methods
(you do not have to provide a template for an empty list).
Your templates should follow the structure we've
used in class (in your template, show fields, methods, and methods for fields).
Be precise when formulating the purpose statement for a method in a particular
class (use "this" and "given" appropriately). Finally, make sure you provide
adequate test cases for each method you develop, including helpers.
listAll that produces a list of all players in
a soccer league.
Pages (a directory) contains:
- index.html (file)
- my-pics.html (file)
- Pictures (directory) contains:
o house.jpeg (file)
o friend.jpeg (file)
o brother.jpeg (file)
- Quotations (directory) contains:
o twain.txt (file)
o cervantes.txt (file)
You may choose any sizes for the files (assume the sizes are in kiloBytes).
totalSize that computes the size of a directory
by adding the sizes of all the files in it. Additionallly, every directory
requires 4 kiloBytes for keeping track of its list of files and
subdirectories. Again, add to the templates as you go.
allFiles that produces a list of all files
of the given kind in a directory (and in any of its subdirectories
and in any of their subdirectories...)
Using web-based turnin, turn in two files, hw3-soccer.bjava and hw3-filesystem.bjavacontaining all code and documentation for this assignment. Both partners' names and wpi login names should appear in a comment at the top of both files.