Starting from:
$30

$24

Lab 3 Solution

PROGRAM SPECIFICATIONS




For this lab you will create a bunch of classes to solve the problem. You must have the appropriate @Override and enforce the appropriate preconditions. All parameters must be final.




CSCD211Lab3.java




I have provided a comprehensive main. You may not change this file.




CSCD211Lab3Methods.java




Public methods that you must write

fillArray – must call the first EVC above for Book



menu



printBooks
readFileName



addBook
createBook – must call the second EVC above for Book



getGenre



The menu choices are




Print the books to the screen
Print the books to a file
Sort the book using compareTo
Sort the books by first author as a Comparator
Add a book
Quit



SPECIFICATIONS




You must verify all values are in range menu, number of authors, etc.



You must use my package for the FileUtil



FILE SPECIFICATIONS




of Books in the file Title
ISBN Pages Genre Pub Name Pub City




Number of Authors One Author per line




Genre strings are guaranteed to be one of the following in any case




fiction



non-fiction



romance



education



sci-fi
TO TURN IN




A zip file, in Canvas, by the required due date containing:




all java files



all input file(s) used to test your program program



all output file(s)



a test run named cscd211lab3out.txt – testing all aspects



We should be able to download the zip and compile your code, and then run your code.



Name your zip, your last name first letter of your first name lab3.zip (Example: steinerslab3.zip)

More products